Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vmess): add length mask (opt=4) #298

Merged
merged 1 commit into from
Nov 28, 2021

Conversation

mzz2017
Copy link
Contributor

@mzz2017 mzz2017 commented Nov 18, 2021

The vmess implementation of glider did not have opt=4 which is length confusion. The middleman can easily get a feature by comparing the length of the first 2 bytes (plaintext of length) of the chunk with the actual length of the TCP stream chunk.

For example, if there is a connection to the port that does not meet this feature (with opt=4) and another meets the feature, and the port is confirmed unknown traffic, it can be preliminarily judged to be vmess.

@nadoo nadoo changed the base branch from master to dev November 28, 2021 15:02
@nadoo nadoo merged commit 6006ec1 into nadoo:dev Nov 28, 2021
@nadoo
Copy link
Owner

nadoo commented Nov 28, 2021

Thanks!

@nadoo nadoo mentioned this pull request Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants