Skip to content

Commit

Permalink
Update onioff.py
Browse files Browse the repository at this point in the history
Updated IP Check URL (Previous was inactive)
  • Loading branch information
CyberSoldiers committed Aug 5, 2021
1 parent 34dc309 commit ec042cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions onioff.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def nowPrint(msg, error=False, ext=False, heavy=False):
def connectTor():
global pure_ip

ipcheck_url = 'https://locate.now.sh/ip'
ipcheck_url = 'https://ipinfo.io/ip'
pure_ip = requests.get(ipcheck_url).text.replace('\n','')

socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 9050)
Expand All @@ -81,7 +81,7 @@ def create_connection(address, timeout=None, source_address=None):
def checkOnion(onion):
global gathered, response, outFile

ipcheck_url = 'https://locate.now.sh/ip'
ipcheck_url = 'https://ipinfo.io/ip'
check_ip = requests.get(ipcheck_url).text.replace('\n','')
if check_ip != pure_ip:
try:
Expand Down Expand Up @@ -288,4 +288,4 @@ def inspect():
concurrent = 200
q = queue.Queue(concurrent * 2)

main()
main()

0 comments on commit ec042cc

Please sign in to comment.