finalmask: add sudoku (tcp+udp), make tcpmask apply#5685
Open
saba-futai wants to merge 9 commits intoXTLS:mainfrom
Open
finalmask: add sudoku (tcp+udp), make tcpmask apply#5685saba-futai wants to merge 9 commits intoXTLS:mainfrom
saba-futai wants to merge 9 commits intoXTLS:mainfrom
Conversation
Member
|
会合并,不过感觉不需要改这么多文件?等一下 #5657 |
Contributor
同时覆盖读写不应该被 unwrap,默认无法 splice 就行, |
Contributor
|
Splice 返回 false,RawConn 就返回 self |
Author
|
#5657 合了之后我在你上面改吧 |
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.
according: SUDOKU-ASCII/sudoku#23 (comment)
把 sudoku 接进了 finalmask,作为可选 mask。
主要保留了几项外观变换配置:ascii / entropy / custom table / padding range,目标是让它能挂在任意上层协议上直接用。
配置示例(put in outbound streamSettings):
{ "streamSettings": { "finalmask": { "tcp": [ { "type": "sudoku", "settings": { "password": "your-shared-secret", "ascii": "prefer_entropy", "packed": true, "customTable": "xpxvvpvv", "paddingMin": 2, "paddingMax": 7 } } ], "udp": [ { "type": "sudoku", "settings": { "password": "your-shared-secret", "ascii": "prefer_ascii" } } ] } } }UDP 侧如果用 sudoku,必须放最内层,说实话TCP mask在各环境下能不能work我也不确定,反正vless(no vision flow)、 vmess tls ws、经我测试没问题