From 452fd637b397d245d44ed4c841989430325554af Mon Sep 17 00:00:00 2001 From: TimStallard Date: Sun, 27 Jan 2019 15:34:41 +0000 Subject: [PATCH] Allow for old style configs --- lg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lg.py b/lg.py index f610cc8..e2591c8 100644 --- a/lg.py +++ b/lg.py @@ -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