Update change_upstream_proxy.py (#6853)
Script was not working as ServerSpec accepts a tuple, which was not supplied. I fixed it so a tuple is supplied to ServerSpec
This commit is contained in:
parent
d6dc12c835
commit
0503fbb63a
|
@ -31,4 +31,4 @@ def request(flow: http.HTTPFlow) -> None:
|
|||
# server_conn already refers to an existing connection (which cannot be modified),
|
||||
# so we need to replace it with a new server connection object.
|
||||
flow.server_conn = Server(address=flow.server_conn.address)
|
||||
flow.server_conn.via = ServerSpec("http", address)
|
||||
flow.server_conn.via = ServerSpec(("http", address))
|
||||
|
|
Loading…
Reference in New Issue