Add Riverrun TCP Stream Modifier into V2Ray#2946
Open
xiaokangwang wants to merge 3 commits intov2fly:masterfrom
Open
Add Riverrun TCP Stream Modifier into V2Ray#2946xiaokangwang wants to merge 3 commits intov2fly:masterfrom
xiaokangwang wants to merge 3 commits intov2fly:masterfrom
Conversation
|
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #2946 +/- ##
==========================================
- Coverage 35.60% 35.56% -0.05%
==========================================
Files 729 732 +3
Lines 41612 41719 +107
==========================================
+ Hits 14818 14838 +20
- Misses 25161 25246 +85
- Partials 1633 1635 +2 ☔ View full report in Codecov by Sentry. |
Contributor
|
It has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days |
Contributor
|
It has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Riverrun is a TCP Stream Modifier that try to reduce the entropy of traffics in order to bypass some kind of traffic classification, including the block of fully encrypted traffic. This version includes the simplest integration that use a seed to automatically derivate all parameters and apply the transformation to the entire stream.
The deterministic random number generator code is written by an author that is not personally known to us, with 2-BSD license. I think it is fine to include it, but in the worst case this part can be rewritten with a incompatible protocol change. Other codes are awaiting relicense confirmation from their authors.
To run one of its client:
v2ray run -format jsonv5 -c client.json{ "log": { "error": { "level": "Debug", "type": "Console" }, "access": { "type": "None" } }, "outbounds": [ { "protocol": "vmess", "settings": { "port": 44122, "uuid": "480b5e93-a450-47d0-8a9a-cdac889488e5", "address": "127.0.0.1" }, "streamSettings": { "transport": "tcp", "transportSettings": { "headerSettings": { "@type": "types.v2fly.org/v2ray.core.transport.internet.headers.riverrun.Config", "seed": "riverrun_64hw2d6o7tlupu9jufl3hr68kbwguewcg2rs" } } } } ], "inbounds": [ { "protocol": "socks", "settings": { "udpEnabled": true, "address": "127.0.0.1", "packetEncoding": "Packet" }, "port": 10808 } ] }To run one of its client:
v2ray run -format jsonv5 -c client.json{ "log": { "error": { "level": "Debug", "type": "Console" }, "access": { "type": "None" } }, "outbounds": [ { "protocol": "freedom" } ], "inbounds": [ { "protocol": "vmess", "settings": { "users": [ "480b5e93-a450-47d0-8a9a-cdac889488e5" ] }, "port": 44122, "streamSettings": { "transport": "tcp", "transportSettings": { "headerSettings": { "@type": "types.v2fly.org/v2ray.core.transport.internet.headers.riverrun.Config", "seed": "riverrun_64hw2d6o7tlupu9jufl3hr68kbwguewcg2rs" } } } } ] }Note to self: squash on merge.