支持域名带端口访问

This commit is contained in:
aoshiguchen
2023-06-09 12:55:24 +08:00
parent 70e6d2ab45
commit 5a36c88875
2 changed files with 4 additions and 1 deletions
@@ -163,7 +163,8 @@ public class HttpVisitorChannelHandler extends SimpleChannelInboundHandler<ByteB
}
// 域名
String domain = line.substring(6);
return domain;
// 去掉域名后面的端口号
return domain.replaceAll(":.*", "");
}
return null;
}