支持域名带端口访问

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;
}
+2
View File
@@ -30,6 +30,8 @@
- [ ] 支持调整服务端端口、证书
- [ ] 服务端版本、协议版本、客户端版本管理
- [ ] 服务端日志
- [ ] 支持持管理后台动态调整日志级别。
- [ ] 动态调整转发、报文、心跳输出
- client+计划启动
- [ ] 安卓客户端
- [ ] 基于electron-egg的多平台客户端