Skip to content

Commit

Permalink
Fix for allowlist matching
Browse files Browse the repository at this point in the history
  • Loading branch information
xeraph committed Feb 12, 2023
1 parent dbd99c4 commit 1f12b19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/logpresso/httpproxy/ConnectRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1f12b19

Please sign in to comment.