This commit is contained in:
bilt 2025-08-01 16:38:12 +08:00
parent 3ac71aaa09
commit 66de571556
2 changed files with 6 additions and 1 deletions

View File

@ -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")

View File

@ -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."