Compare commits

..

No commits in common. "86562dce892f417f2c08cc119f28c473fe109266" and "9eea718f262cedabb6172201a56ddaa4d0e6d7e0" have entirely different histories.

View File

@ -16,6 +16,9 @@ MY_IP_URL = "http://ifconfig.me"
domains = [DDNS_NC_URL, DDNS_WG_URL, DDNS_CR_URL, DDNS_GT_URL] domains = [DDNS_NC_URL, DDNS_WG_URL, DDNS_CR_URL, DDNS_GT_URL]
current_ip = requests.get(MY_IP_URL, timeout=15).text
registered_ip = socket.gethostbyname(GT_HOST)
while True: while True:
try: try:
current_ip = requests.get(MY_IP_URL, timeout=15).text current_ip = requests.get(MY_IP_URL, timeout=15).text
@ -36,5 +39,5 @@ while True:
else: else:
print(f"No IP change detected (currently {current_ip}).") print(f"No IP change detected (currently {current_ip}).")
finally: finally:
print("Sleeping 5 minutes...") print("Sleeping 10 minutes...")
sleep(300) sleep(1200)