Conversation
Member
|
会合并,不过感觉不需要改这么多文件?等一下 #5657 |
Contributor
同时覆盖读写不应该被 unwrap,默认无法 splice 就行, |
Contributor
|
Splice 返回 false,RawConn 就返回 self |
Contributor
Author
|
#5657 合了之后我在你上面改吧 |
Member
|
#5657 已被合并 |
Contributor
Author
|
OK,这边也好了 |
Contributor
|
|
Member
|
你们交流下吧,ready 了说一声 |
Contributor
|
我这边看着没问题了 |
Contributor
Author
等,查一遍CI,感觉不是大问题 |
Member
|
|
Contributor
Author
|
ready |
drovosek229
pushed a commit
to drovosek229/Xray-core
that referenced
this pull request
Mar 16, 2026
1 task
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)
Note
注意,此处的sudoku仅仅是xray的finalmask选项,而非sudoku协议本身,此处不兼容与sudoku协议本体通信,只做字节外观的变化。所以sudoku本身有的握手、防重放、回落、前向安全在此处均不存在,请自行确保内层协议实现了足够的安全。
主要保留了几项外观变换配置:ascii / entropy / custom table / padding range,目标是让它能挂在任意上层协议上直接用。
配置示例(put in outbound streamSettings):
{ "streamSettings": { "finalmask": { "tcp": [ { "type": "sudoku", "settings": { "password": "your-shared-secret", "ascii": "prefer_entropy", "customTables": [ "xpxvvpvv", "vxpvxvvp", "pxvvxvvp", "vpxvxvpv", "xvpvvxpv", "vvxpxpvv" ], "paddingMin": 2, "paddingMax": 7 } } ], "udp": [ { "type": "sudoku", "settings": { "password": "your-shared-secret", "ascii": "prefer_ascii" } } ] } } }配套inbound:
{ "streamSettings": { "network": "tcp", "finalmask": { "tcp": [ { "type": "sudoku", "settings": { "password": "same-secret", "ascii": "prefer_entropy", "customTables": [ "xpxvvpvv", "vxpvxvvp", "pxvvxvvp", "vpxvxvpv", "xvpvvxpv", "vvxpxpvv" ], "paddingMin": 0, "paddingMax": 3 } } ] } } }字段解释:
prefer_ascii,prefer_entropyprefer_entropy下生效个人建议的协议搭配:裸vless-enc + sudoku-finalmask
服务端最小示例
{ "log": { "loglevel": "warning" }, "inbounds": [ { "tag": "vless-in", "listen": "0.0.0.0", "port": 10061, "protocol": "vless", "settings": { "clients": [ { "id": "uuid", "email": "client@local" } ], "decryption": "mlkem768x25519plus.native.600s.+-/*xxxx" }, "streamSettings": { "network": "tcp", "finalmask": { "tcp": [ { "type": "sudoku", "settings": { "password": "passwordhere", "ascii": "prefer_ascii" } } ] } } } ], "outbounds": [ { "tag": "direct", "protocol": "freedom" } ] }