diff --git a/mddclient/mddclient.py b/mddclient/mddclient.py index 4b8408e..1899bc9 100755 --- a/mddclient/mddclient.py +++ b/mddclient/mddclient.py @@ -52,9 +52,9 @@ VERSION = '0.2' DESCRIPTION = 'A DynamicDns client like ddclient, but supporting multiple (sub)domains' STATUS_FILE = '/tmp/mddclient.tmp' CHECKIP_REQUEST_ADDR = 'http://checkip.dyndns.org' -CHECKIP_RESPONSE_PARSER = 'Current IP Address: (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})' +CHECKIP_RESPONSE_PARSER = r'Current IP Address: (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})' DDCLIENT2_REQUEST_ADDR = "https://{}/nic/update?system=dyndns&hostname={}&myip={}" -DDCLIENT2_RESPONSE_PARSER = '^(nochg|no_change|good) (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})$' +DDCLIENT2_RESPONSE_PARSER = r'^(nochg|no_change|good) (\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})$' USER_AGENT = 'Selfhost Utils Mddclient ' + VERSION class Main: