Skip to content

Commit adac185

Browse files
committed
update script
1 parent 7faee14 commit adac185

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/check_ip_and_store.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def main():
4141
last_is_4g = None
4242
while True:
4343
try:
44+
log(f"Last IP: {last_ip}")
4445
ip = get_wan_ip()
4546
log(f"Retrieved IP: {ip}")
4647
is_4g = is_mobile_ip(ip)
@@ -58,7 +59,7 @@ def main():
5859
last_is_4g = is_4g
5960
except Exception as e:
6061
log(str(e), level="ERROR")
61-
time.sleep(60)
62+
time.sleep(SLEEP_SECONDS)
6263

6364
if __name__ == "__main__":
6465
main()

0 commit comments

Comments
 (0)