From 95a6a140498c2b420b8e2532c3911b0c0ec2a07f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Fri, 29 Mar 2019 19:21:30 +0100 Subject: [PATCH] daemon: Use the proxy setting provided by the command line. --- pantalaimon/daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pantalaimon/daemon.py b/pantalaimon/daemon.py index 0ec99ab..009f015 100755 --- a/pantalaimon/daemon.py +++ b/pantalaimon/daemon.py @@ -327,9 +327,9 @@ class ProxyDaemon: self.default_session = None -async def init(homeserver, proxy, ssl): +async def init(homeserver, http_proxy, ssl): """Initialize the proxy and the http server.""" - proxy = ProxyDaemon(homeserver, proxy="http://localhost:8080", ssl=ssl) + proxy = ProxyDaemon(homeserver, proxy=http_proxy, ssl=ssl) app = web.Application() app.add_routes([