diff --git a/cfipv6.txt b/cfipv6.txt index abf750f1..7d8e0462 100644 --- a/cfipv6.txt +++ b/cfipv6.txt @@ -1,10 +1,10 @@ -2606:4700:f4::cb22:6882:dc0e#Could not retrieve colo -2606:4700:f4::4fe7:ddfa#Could not retrieve colo -2606:4700:3030:0:f8:dd6e:329c:aeee#Could not retrieve colo -2606:4700:f4::4f35:1347#Could not retrieve colo -2606:4700:3030:0:59cb:e512:8aa0:53f#Could not retrieve colo -2606:4700:f4::3b:4c2f:4ffe#Could not retrieve colo -2606:4700:3030::3335#Could not retrieve colo -2606:4700:3030:0:f8:a357:c31d:e2c2#Could not retrieve colo -2a06:98c1:3123:6ce2:866e:a056:34b7:749#Could not retrieve colo -2606:4700:3030:74:3957:377e:8c7d:3915#Could not retrieve colo +2a06:98c1:3120:0:c2:63fc:292c:5ea5#CF优选 +2a06:98c1:3120::3a94:d4e4:7a26#CF优选 +2606:4700:f4:9411:bf85:b655:3154:4345#CF优选 +2a06:98c1:3122:6a8d:e388:b39c:1e0b:5dd6#CF优选 +2606:4700:3035:b1:c60:4ef6:f9ce:877d#CF优选 +2606:4700:3037:bfae:8c4b:7a71:8d9f:a598#CF优选 +2a06:98c1:3120:0:e076:86f:eb43:142c#CF优选 +2606:4700:3035:b1:c7e:6c3b:8538:12d8#CF优选 +2606:4700:f4:f1:f45f:83e8:b1fe:e856#CF优选 +2606:4700:3037:bfae:8c4b:7573:9295:7f05#CF优选 diff --git a/cfst.py b/cfst.py index adea6314..b077e3d9 100755 --- a/cfst.py +++ b/cfst.py @@ -67,7 +67,7 @@ def get_colo(ip_address): except requests.exceptions.RequestException as e: print(f"An error occurred for IP {ip_address}: {e}") - return "Could not retrieve colo" + return "CF优选" # 检查 cfst 文件是否存在 if not os.path.exists(cfst_path): @@ -112,7 +112,7 @@ def get_colo(ip_address): remove_file(log_file) # 执行 cfst 命令,使用变量传递 cfcolo -subprocess.run(["./cfst", "-httping", "-cfcolo", cfcolo, "-tl", "200", "-tp", "443", "-sl", "5", "-dn", "10"], check=True) +subprocess.run(["./cfst", "-httping", "-cfcolo", cfcolo, "-tl", "200", "-tll", "40", "-tp", "443", "-sl", "5", "-dn", "10"], check=True) # 提取 IP 地址并保存到 cfip.txt ip_addresses = [] diff --git a/cfstv6.py b/cfstv6.py index 541ddca0..478eb15c 100755 --- a/cfstv6.py +++ b/cfstv6.py @@ -67,7 +67,7 @@ def get_colo(ip_address): except requests.exceptions.RequestException as e: print(f"An error occurred for IP {ip_address}: {e}") - return "Could not retrieve colo" + return "CF优选" # 检查 cfst 文件是否存在 if not os.path.exists(cfst_path): @@ -112,7 +112,7 @@ def get_colo(ip_address): remove_file(log_file) # 执行 cfst 命令,使用变量传递 cfcolo -subprocess.run(["./cfst", "-f", "ipv6.txt", "-o", "resultv6.csv", "-httping", "-cfcolo", cfcolo, "-tl", "100", "-tp", "443", "-sl", "5", "-dn", "10"], check=True) +subprocess.run(["./cfst", "-f", "ipv6.txt", "-o", "resultv6.csv", "-httping", "-cfcolo", cfcolo, "-tl", "100", "-tll", "40", "-tp", "443", "-sl", "5", "-dn", "10"], check=True) # 提取 IP 地址并保存到 cfip.txt ip_addresses = [] diff --git a/resultv6.csv b/resultv6.csv index e5c6b879..75ac409c 100644 --- a/resultv6.csv +++ b/resultv6.csv @@ -1,11 +1,11 @@ IP 地址,已发送,已接收,丢包率,平均延迟,下载速度 (MB/s) -2606:4700:f4::cb22:6882:dc0e,4,4,0.00,51.32,5.46 -2606:4700:f4::4fe7:ddfa,4,4,0.00,46.92,5.46 -2606:4700:3030:0:f8:dd6e:329c:aeee,4,4,0.00,51.63,5.43 -2606:4700:f4::4f35:1347,4,4,0.00,47.50,5.36 -2606:4700:3030:0:59cb:e512:8aa0:53f,4,4,0.00,50.09,5.33 -2606:4700:f4::3b:4c2f:4ffe,4,4,0.00,51.08,5.30 -2606:4700:3030::3335,4,4,0.00,50.44,5.23 -2606:4700:3030:0:f8:a357:c31d:e2c2,4,4,0.00,49.68,5.23 -2a06:98c1:3123:6ce2:866e:a056:34b7:749,4,4,0.00,51.64,5.14 -2606:4700:3030:74:3957:377e:8c7d:3915,4,4,0.00,50.83,5.01 +2a06:98c1:3120:0:c2:63fc:292c:5ea5,4,4,0.00,62.94,5.53 +2a06:98c1:3120::3a94:d4e4:7a26,4,4,0.00,62.77,5.50 +2606:4700:f4:9411:bf85:b655:3154:4345,4,4,0.00,62.94,5.50 +2a06:98c1:3122:6a8d:e388:b39c:1e0b:5dd6,4,4,0.00,62.90,5.48 +2606:4700:3035:b1:c60:4ef6:f9ce:877d,4,4,0.00,62.96,5.46 +2606:4700:3037:bfae:8c4b:7a71:8d9f:a598,4,4,0.00,62.79,5.37 +2a06:98c1:3120:0:e076:86f:eb43:142c,4,4,0.00,62.78,5.35 +2606:4700:3035:b1:c7e:6c3b:8538:12d8,4,4,0.00,62.92,5.33 +2606:4700:f4:f1:f45f:83e8:b1fe:e856,4,4,0.00,62.84,5.24 +2606:4700:3037:bfae:8c4b:7573:9295:7f05,4,4,0.00,62.81,5.24