This commit is contained in:
wanghongenpin
2025-05-15 01:46:37 +08:00
parent c94ff7eba9
commit 244fde4dc6
6 changed files with 33 additions and 19 deletions

View File

@@ -87,7 +87,8 @@ class HttpProxyChannelHandler extends ChannelHandler<HttpRequest> {
//实现抓包代理转发
if (httpRequest.method != HttpMethod.connect) {
log.d("[${channel.id}] ${httpRequest.protocolVersion} ${httpRequest.method.name} ${httpRequest.requestUrl}");
log.d(
"[${channel.id}] streamId:${httpRequest.streamId} ${httpRequest.protocolVersion} ${httpRequest.method.name} ${httpRequest.requestUrl}");
if (HostFilter.filter(httpRequest.hostAndPort?.host)) {
await remoteChannel.write(channelContext, httpRequest);
return;