daemon: Use the proxy setting provided by the command line.

This commit is contained in:
Damir Jelić 2019-03-29 19:21:30 +01:00
parent a3643cf6b2
commit 95a6a14049

View File

@ -327,9 +327,9 @@ class ProxyDaemon:
self.default_session = None self.default_session = None
async def init(homeserver, proxy, ssl): async def init(homeserver, http_proxy, ssl):
"""Initialize the proxy and the http server.""" """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 = web.Application()
app.add_routes([ app.add_routes([