From 8dd82e4760a8b60106d0e865569f8cd576f436e9 Mon Sep 17 00:00:00 2001 From: Ross Brackett Date: Fri, 17 Jun 2022 16:13:40 -0700 Subject: [PATCH] lowercasing the domain so it will match even if the user uses mixed case --- porkbun-ddns.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/porkbun-ddns.py b/porkbun-ddns.py index 475161d..90974d8 100755 --- a/porkbun-ddns.py +++ b/porkbun-ddns.py @@ -30,10 +30,10 @@ def createRecord(): if len(sys.argv)>2: #at least the config and root domain is specified apiConfig = json.load(open(sys.argv[1])) #load the config file into a variable - rootDomain=sys.argv[2] + rootDomain=sys.argv[2].lower() if len(sys.argv)>3 and sys.argv[3]!='-i': #check if a subdomain was specified as the third argument - subDomain=sys.argv[3] + subDomain=sys.argv[3].lower() fqdn=subDomain + "." + rootDomain else: subDomain=''