From 66de571556ab2abad704a8ed6ebaabbbf78be8fb Mon Sep 17 00:00:00 2001 From: bilt Date: Fri, 1 Aug 2025 16:38:12 +0800 Subject: [PATCH] 21673 --- main.py | 5 ++++- script.sh | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 195994dfe..cef72dc2f 100644 --- a/main.py +++ b/main.py @@ -158,7 +158,10 @@ if __name__ == "__main__": start_frp() # frp_remote_port_idx: 3, 4, 5, 6.... if args.frp_remote_port_idx is not None: - notion.add_record_to_notion_database(f"http://111.170.148.226:2166{args.frp_remote_port_idx}/") + if args.frp_remote_port_idx == -1: + notion.add_record_to_notion_database(f"http://111.170.148.226:21673/") + else: + notion.add_record_to_notion_database(f"http://111.170.148.226:2166{args.frp_remote_port_idx}/") else: print("frp_remote_port_idx is None, no records will be added to notion database") diff --git a/script.sh b/script.sh index 54bea5a7c..0e898a230 100644 --- a/script.sh +++ b/script.sh @@ -132,6 +132,8 @@ elif [ "$CHOICE" -eq 5 ]; then TARGET_REMOTE_PORT="21665" elif [ "$CHOICE" -eq 6 ]; then TARGET_REMOTE_PORT="21666" +elif [ "$CHOICE" -eq -1 ]; then + TARGET_REMOTE_PORT="21673" else echo "Invalid CHOICE: $CHOICE" echo "Only 1 or 2 are supported."