-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🥪 ss2022/tcp: change padding behavior
Previously, for Shadowsocks 2022 TCP, padding is only added when there's no initial payload. This commit changes the behavior so that padding is added as long as the size of the initial payload does not exceed MaxPaddingLength. Along with the above change is a bit of refactoring and a fix for large (>128k) initial payload handling.
- Loading branch information
1 parent
7151714
commit d98e94d
Showing
4 changed files
with
141 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.