Update src/dyndns.py

Co-authored-by: ljf (zamentur) <zamentur@users.noreply.github.com>
This commit is contained in:
theo-is-taken 2022-07-05 09:55:19 +02:00 committed by GitHub
parent ab37617f91
commit e58aaa6db6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,7 +216,8 @@ def dyndns_unsubscribe(operation_logger, domain, password=None):
try:
r = requests.delete(
f"https://{DYNDNS_PROVIDER}/domains/{domain}",
data={"recovery_password":hashlib.sha256((str(domain)+":"+str(password).strip()).encode('utf-8')).hexdigest()},
secret = str(domain) + ":" + str(password).strip()
data = {"recovery_password": hashlib.sha256(secret.encode('utf-8')).hexdigest()},
timeout=30,
)
except Exception as e: