소스 검색

enable pading for cfb

Darien Raymond 8 년 전
부모
커밋
3ed16fad38
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      proxy/vmess/encoding/client.go

+ 0 - 4
proxy/vmess/encoding/client.go

@@ -80,10 +80,6 @@ func (c *ClientSession) EncodeRequestHeader(header *protocol.RequestHeader, writ
 	buffer.AppendBytes(c.responseHeader, byte(header.Option))
 
 	padingLen := dice.Roll(16)
-	if header.Security.Is(protocol.SecurityType_LEGACY) {
-		// Disable padding in legacy mode for a smooth transition.
-		padingLen = 0
-	}
 	security := byte(padingLen<<4) | byte(header.Security)
 	buffer.AppendBytes(security, byte(0), byte(header.Command))