Reference variable rather than value in listIncluded()
This commit is contained in:
parent
27efb21c42
commit
780df5abc1
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue