Skip to content

Commit

Permalink
Reset to old version
Browse files Browse the repository at this point in the history
  • Loading branch information
PauperZ committed Jun 8, 2022
1 parent 9d4b91d commit 9c12cdf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ssrspeed/speed_test/speed_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,10 @@ def __geoIPOutbound(self):
"https": "socks5h://127.0.0.1:%d" % LOCAL_PORT
}, timeout=20, allow_redirects=False)

if (r.status_code == 200):
ytype = True
if ("is not available" in r.text):
ytype = False
elif (r.status_code == 200):
ytype = True
else:
ytype = False

Expand Down

0 comments on commit 9c12cdf

Please sign in to comment.