Commit 780df5ab authored by Klaus-Uwe Mitterer's avatar Klaus-Uwe Mitterer

Reference variable rather than value in listIncluded()

parent 27efb21c
Pipeline #170 skipped
......@@ -34,7 +34,7 @@ def logger(message, prio=syslog.LOG_INFO, sink=logging):
logger(message, prio, logging)
def listIncluded(host, section):
for i in setuptools.getListSetting("SSL" if section == 0 else "Ports", "hosts"):
for i in setuptools.getListSetting("SSL" if section == SSL else "Ports", "hosts"):
if encodings.idna.ToASCII(i[0].lower()).decode("UTF-8") == encodings.idna.ToASCII(host.lower()).decode("UTF-8"):
return True
return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment