1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 08:15:21 -05:00

max padding len as variable

This commit is contained in:
Darien Raymond
2018-07-08 21:46:13 +02:00
parent a8b0660df0
commit 8a879deac1
3 changed files with 11 additions and 1 deletions

View File

@@ -111,3 +111,7 @@ func (s *ShakeSizeParser) Encode(size uint16, b []byte) []byte {
func (s *ShakeSizeParser) NextPaddingLen() uint16 {
return s.next() % 64
}
func (s *ShakeSizeParser) MaxPaddingLne() uint16 {
return 64
}