diff --git a/lgproxy.cfg b/lgproxy.cfg index 7ba93fa..e7a6e8a 100644 --- a/lgproxy.cfg +++ b/lgproxy.cfg @@ -2,6 +2,8 @@ DEBUG=False LOG_FILE="/var/log/lg-proxy/lg-proxy.log" LOG_LEVEL="WARNING" +BIND_IP = "0.0.0.0" +BIND_PORT = 5000 ACCESS_LIST = ["91.224.149.206", "178.33.111.110", "2a01:6600:8081:ce00::1"] IPV4_SOURCE="" IPV6_SOURCE="" diff --git a/lgproxy.py b/lgproxy.py index 5d14e98..e6018f0 100644 --- a/lgproxy.py +++ b/lgproxy.py @@ -111,5 +111,4 @@ def bird(): if __name__ == "__main__": app.logger.info("lgproxy start") - app.run("0.0.0.0") - + app.run(app.config.get("BIND_IP", "0.0.0.0"), app.config.get("BIND_PORT", 5000))