os.popen('curl -s icanhazip.com').read()
This commit is contained in:
parent
0dae270af9
commit
ecf2f1a092
|
@ -160,9 +160,12 @@ while PublicIP <= 2:
|
||||||
while GetCurrentIP <= 2:
|
while GetCurrentIP <= 2:
|
||||||
print ("[ip2e-daemon] IP Updating...")
|
print ("[ip2e-daemon] IP Updating...")
|
||||||
os.system("echo [ip2e-daemon] IP Updating... >> ip2e.log")
|
os.system("echo [ip2e-daemon] IP Updating... >> ip2e.log")
|
||||||
NewIP = os.popen('curl -s http://ip.appspot.com/').read()
|
NewIPRaw = os.popen('curl -s icanhazip.com').read()
|
||||||
#NewIP = os.popen('curl -s ifconfig.me').read()
|
NewIP = NewIPRaw.strip()
|
||||||
#NewIP = os.popen('wget -qO- icanhazip.com').read()
|
#NewIP = os.popen('curl -s http://ip.appspot.com/').read()
|
||||||
|
#NewIP = os.popen('curl -s ident.me').read()
|
||||||
|
#NewIPRaw = os.popen('curl -s ifconfig.me').read()
|
||||||
|
#NewIP = NewIPRaw.strip()
|
||||||
if NewIP != "":
|
if NewIP != "":
|
||||||
GetCurrentIP += 2
|
GetCurrentIP += 2
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user