mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 12:25:00 +08:00
proxy/protocol/base: use upstream_bind_address
Use the upstream_bind_address option, instead of listen_host.
This commit is contained in:
@@ -114,7 +114,7 @@ class ServerConnectionMixin:
|
||||
server_address, (self.ctx.client_conn.address.host, 0), True)
|
||||
else:
|
||||
self.server_conn = connections.ServerConnection(
|
||||
server_address, (self.config.options.listen_host, 0))
|
||||
server_address, (self.config.options.upstream_bind_address, 0))
|
||||
|
||||
self.__check_self_connect()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user