enable ipv6

This commit is contained in:
Matthew Tran
2023-09-22 09:09:25 +00:00
parent 0f682ba164
commit fe653923f5
3 changed files with 30 additions and 2 deletions
+1 -2
View File
@@ -12,8 +12,7 @@ if __name__ == '__main__':
old_ipv4, old_ipv6 = None, None
while True:
ipv4 = urllib.request.urlopen('https://v4.ident.me').read().decode('utf8')
ipv6 = None
# ipv6 = urllib.request.urlopen('https://v6.ident.me').read().decode('utf8')
ipv6 = urllib.request.urlopen('https://v6.ident.me').read().decode('utf8')
if ipv4 != old_ipv4 or ipv6 != old_ipv6:
msg = Mail(