Reference variable rather than value in listIncluded()

This commit is contained in:
Klaus-Uwe Mitterer 2016-07-20 19:15:58 +02:00
parent 27efb21c42
commit 780df5abc1
1 changed files with 1 additions and 1 deletions

View File

@ -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