fix relay connect handler

This commit is contained in:
ginuerzh
2023-02-14 18:53:57 +08:00
parent b8027864a3
commit 09ee29091b

View File

@ -214,7 +214,7 @@ func (h *relayHandler) Handle(ctx context.Context, conn net.Conn, opts ...handle
}
switch req.Cmd & relay.CmdMask {
case relay.CmdConnect:
case 0, relay.CmdConnect:
defer conn.Close()
if !tunnelID.IsZero() {