Skip to content

Commit

Permalink
update v1.0.6-rc18
Browse files Browse the repository at this point in the history
  • Loading branch information
faireal committed Sep 12, 2023
1 parent 3952a52 commit cf7a7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tunnel/vmess/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (s *Server) handshake(c *InboundConn) error {
padingLen := int(req[35] >> 4) // 4 bits, 余量 P
c.security = req[35] & 0x0F // 4 bits, 加密方式 Sec
cmd := req[37] // 1 byte, 指令 Cmd
if cmd != CmdTCP || cmd != CmdUDP {
if cmd != CmdTCP && cmd != CmdUDP {
return fmt.Errorf("unsuppoted command %v", cmd)
}

Expand Down

0 comments on commit cf7a7b2

Please sign in to comment.