From de50db59d5a722864e8f29512b6e26a6edc2dbdb Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Tue, 19 Apr 2022 17:06:52 +0300 Subject: [PATCH] add support dns.he.net --- simplewc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simplewc.py b/simplewc.py index 95def53..7794396 100644 --- a/simplewc.py +++ b/simplewc.py @@ -87,6 +87,8 @@ class HEupdate: :param rec_val: string with record value :return: None, Message after request """ + if rec_key[-1] == '.': + rec_key = rec_key[:-1] self._data = 'hostname=' + rec_key + '&' + 'password=' + self._ddnskey + '&' + 'txt=' + rec_val request = urllib.request.Request(url=self._server, data=bytes(self._data.encode('utf-8')), method='POST') response = urllib.request.urlopen(request).read()