Allow for old style configs

This commit is contained in:
TimStallard 2019-01-27 15:34:41 +00:00
parent 417a7d3c27
commit 452fd637b3
No known key found for this signature in database
GPG Key ID: E18E975C6A734F07

2
lg.py
View File

@ -145,6 +145,8 @@ def bird_proxy(host, proto, service, query):
path = service
proxyHost = app.config["PROXY"].get(host, "")
if isinstance(proxyHost, int):
proxyHost = "%s:%s" % (host, proxyHost)
if not proxyHost:
return False, 'Host "%s" invalid' % host