This commit is contained in:
theo@manjaro 2022-07-05 09:59:15 +02:00
parent e58aaa6db6
commit 0903460fc4

View file

@ -214,9 +214,9 @@ def dyndns_unsubscribe(operation_logger, domain, password=None):
# Send delete request
try:
secret = str(domain) + ":" + str(password).strip()
r = requests.delete(
f"https://{DYNDNS_PROVIDER}/domains/{domain}",
secret = str(domain) + ":" + str(password).strip()
data = {"recovery_password": hashlib.sha256(secret.encode('utf-8')).hexdigest()},
timeout=30,
)