修复 docker compose 配置问题,添加 block 监控项,优化日志输出

This commit is contained in:
2025-03-06 10:30:54 +08:00
parent 736dbff17d
commit 9d8bdaec7e
4 changed files with 25 additions and 18 deletions

View File

@@ -158,7 +158,6 @@ func (s *Service) startCtrlTun() error {
}
func (s *Service) processCtrlConn(conn net.Conn) error {
slog.Debug("客户端连入", "addr", conn.RemoteAddr().String())
reader := bufio.NewReader(conn)
// 获取转发端口
@@ -168,6 +167,8 @@ func (s *Service) processCtrlConn(conn net.Conn) error {
}
port := binary.BigEndian.Uint16(portBuf)
slog.Info("客户端注册", "addr", conn.RemoteAddr().String(), "port", port)
// 启动转发服务
proxy, err := dispatcher.New(port)
if err != nil {