fix variable assignment

This commit is contained in:
Emilien Devos 2023-10-14 18:47:09 +02:00
parent 9e88afdf62
commit 1d0101a286

View File

@ -143,7 +143,7 @@ elif sys.argv[1] == "run":
sleep(2)
try:
check_new_ipv6_address = requests.get(
f"http://[{icanhazip_ipv6_address}]", headers={"host": "ipv6.icanhazip.com", timeout=5}
f"http://[{icanhazip_ipv6_address}]", headers={"host": "ipv6.icanhazip.com"}, timeout=5}
)
response_new_ipv6_address = check_new_ipv6_address.text.strip()
if response_new_ipv6_address == random_ipv6_address: