Domain names are case-insensitive

This commit is contained in:
Stephane Bortzmeyer 2022-10-24 18:11:32 +02:00
parent 7ddffa7fa5
commit 42f67a7e64

View File

@ -99,7 +99,7 @@ try:
usage() usage()
sys.exit(STATE_OK) sys.exit(STATE_OK)
elif option == "--hostname" or option == "-H": elif option == "--hostname" or option == "-H":
domain = value domain = value.lower()
elif option == "--timeout" or option == "-t": elif option == "--timeout" or option == "-t":
timeout = int(value) timeout = int(value)
elif option == "--unixtime" or option == "-u": elif option == "--unixtime" or option == "-u":