From 34af066e9e5c075466a27b44952779086a5f56e6 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 2 Mar 2015 21:07:00 +0100 Subject: [PATCH] strato: Add mx and backupmx flags to update request. Add the deprecated mx and backupmx flags to the update request for strato, because this provider still uses them. The providers implementation anyway seems to be broken because already set entries get lost when an update is performed without given mx and backupmx flags. Fixes #10754. --- src/ddns/providers.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ddns/providers.py b/src/ddns/providers.py index 9cec15a..5f78cfc 100644 --- a/src/ddns/providers.py +++ b/src/ddns/providers.py @@ -1411,6 +1411,15 @@ class DDNSProviderStrato(DDNSProtocolDynDNS2, DDNSProvider): url = "https://dyndns.strato.com/nic/update" + def prepare_request_data(self, proto): + data = DDNSProtocolDynDNS2.prepare_request_data(self, proto) + data.update({ + "mx" : "NOCHG", + "backupmx" : "NOCHG" + }) + + return data + class DDNSProviderTwoDNS(DDNSProtocolDynDNS2, DDNSProvider): handle = "twodns.de" -- 2.39.2