From 1f12b1923a25518aa44c7b349e6a0cecc32f3119 Mon Sep 17 00:00:00 2001 From: xeraph Date: Sun, 12 Feb 2023 22:34:18 +0900 Subject: [PATCH] Fix for allowlist matching --- src/main/java/com/logpresso/httpproxy/ConnectRequest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/logpresso/httpproxy/ConnectRequest.java b/src/main/java/com/logpresso/httpproxy/ConnectRequest.java index 131b938..b880f13 100644 --- a/src/main/java/com/logpresso/httpproxy/ConnectRequest.java +++ b/src/main/java/com/logpresso/httpproxy/ConnectRequest.java @@ -48,6 +48,8 @@ public static ConnectRequest parse(String s) { host = url.getHost(); if (url.getPort() != -1) port = url.getPort(); + + target = host + ":" + port; } catch (MalformedURLException e) { throw new IllegalStateException("Malformed HTTP request: " + requestLine, e); }