jack 8 mesi fa
parent
commit
3b093ffa8f
1 ha cambiato i file con 9 aggiunte e 2 eliminazioni
  1. 9 2
      porxy_tools/clash/switch2global.py

+ 9 - 2
porxy_tools/clash/switch2global.py

@@ -5,8 +5,15 @@ import httpx
 import asyncio
 
 ip = "192.168.31.201"
-port_list = ['58001', '58002', '58003', '58004', '58005', '58006', '58007', '58008', '58009', '58010']
-# port_list = ['32001', '32002', '32003', '32004', '32005', '32006', '32007', '32008', '32009', '32010', '32011', '32012']
+
+select_port_list = 0
+
+port_group_list = [
+    ['58001', '58002', '58003', '58004', '58005', '58006', '58007', '58008', '58009', '58010'],
+    ['32001', '32002', '32003', '32004', '32005', '32006', '32007', '32008', '32009', '32010', '32011', '32012']
+]
+
+port_list = port_group_list[select_port_list]
 
 
 async def patch_config(base_port):