修复 docker compose 配置问题,添加 block 监控项,优化日志输出
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user