mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2025-10-11 12:07:56 +00:00
disable ipv6 updates (xfinity changes to often)
This commit is contained in:
parent
d556dfd074
commit
c3c3bf7993
@ -12,7 +12,8 @@ if __name__ == '__main__':
|
||||
old_ipv4, old_ipv6 = None, None
|
||||
while True:
|
||||
ipv4 = urllib.request.urlopen('https://v4.ident.me').read().decode('utf8')
|
||||
ipv6 = urllib.request.urlopen('https://v6.ident.me').read().decode('utf8')
|
||||
# ipv6 = urllib.request.urlopen('https://v6.ident.me').read().decode('utf8')
|
||||
ipv6 = None
|
||||
|
||||
if ipv4 != old_ipv4 or ipv6 != old_ipv6:
|
||||
msg = Mail(
|
||||
|
Loading…
x
Reference in New Issue
Block a user