Skip to content

Commit

Permalink
support ip v6
Browse files Browse the repository at this point in the history
  • Loading branch information
tempookian committed Mar 16, 2023
1 parent cc8b3fa commit b5f2637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/cfFindIP.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ def fronting_test(

success = False
try:
compatible_ip = f"[{ip}]" if ":" in ip else ip
r = s.get(
f"https://{ip}",
f"https://{compatible_ip}",
timeout=timeout,
headers={"Host": "speed.cloudflare.com"}
)
Expand Down

0 comments on commit b5f2637

Please sign in to comment.