aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/proxy/protocol/test_websocket.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/proxy/protocol/test_websocket.py')
-rw-r--r--test/mitmproxy/proxy/protocol/test_websocket.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/mitmproxy/proxy/protocol/test_websocket.py b/test/mitmproxy/proxy/protocol/test_websocket.py
index 4ea01d34..bac0e527 100644
--- a/test/mitmproxy/proxy/protocol/test_websocket.py
+++ b/test/mitmproxy/proxy/protocol/test_websocket.py
@@ -87,8 +87,8 @@ class _WebSocketTestBase:
"authority",
"CONNECT",
"",
- "localhost",
- self.server.server.address.port,
+ "127.0.0.1",
+ self.server.server.address[1],
"",
"HTTP/1.1",
content=b'')
@@ -105,8 +105,8 @@ class _WebSocketTestBase:
"relative",
"GET",
"http",
- "localhost",
- self.server.server.address.port,
+ "127.0.0.1",
+ self.server.server.address[1],
"/ws",
"HTTP/1.1",
headers=http.Headers(