From 3ed16fad380603998f443068fac79a11b7fcd208 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 23 Nov 2017 15:21:57 +0100 Subject: [PATCH] enable pading for cfb --- proxy/vmess/encoding/client.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/proxy/vmess/encoding/client.go b/proxy/vmess/encoding/client.go index 4a6142d08..ba2d57e75 100644 --- a/proxy/vmess/encoding/client.go +++ b/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))