Allow for old style configs
This commit is contained in:
parent
417a7d3c27
commit
452fd637b3
2
lg.py
2
lg.py
@ -145,6 +145,8 @@ def bird_proxy(host, proto, service, query):
|
|||||||
path = service
|
path = service
|
||||||
|
|
||||||
proxyHost = app.config["PROXY"].get(host, "")
|
proxyHost = app.config["PROXY"].get(host, "")
|
||||||
|
if isinstance(proxyHost, int):
|
||||||
|
proxyHost = "%s:%s" % (host, proxyHost)
|
||||||
|
|
||||||
if not proxyHost:
|
if not proxyHost:
|
||||||
return False, 'Host "%s" invalid' % host
|
return False, 'Host "%s" invalid' % host
|
||||||
|
Loading…
x
Reference in New Issue
Block a user