Repository navigation
Conversation
Member
|
如果只是 base64 的话不如先加个正经的 |
Collaborator
Author
|
那就 |
Member
|
|
Collaborator
Author
|
根据测试 #7124 (comment) cli 不比 gui |
Collaborator
Author
# usage: xray base64 encode [-gzip] <input-file | - | stdin:>
$ echo hello world|./xray base64 encode -gzip -
base64+gzip:H4sIAAAAAAAC/8pIzcnJVyjPL8pJ4QIMAC07CK8MAAAA
# usage: xray base64 decode [-gzip] <value | - | stdin:> [output-file]
$ ./xray base64 decode base64+gzip:H4sIAAAAAAAC/8pIzcnJVyjPL8pJ4QIMAC07CK8MAAAA
hello world
|
Member
|
那换成压缩率更高的方式比如 zstd 吧,可以引入依赖(盲猜已经 indirect 了)
|
Member
|
我之前说gzip的原因是标准库在用 zstd 看了下也因为 utls 的缘故间接依赖了 不过还是得对比一下这两个的实际占用 |
Collaborator
Author
|
原理上 zstd 肯定完爆毕竟字典窗口更大
你们挑个顺眼的,我都一样 |
Collaborator
Author
|
Member
|
|
Collaborator
Author
|
我看看编译出来的二进制差多少 |
Collaborator
Author
|
xray-linux-64-gzip 39,481,468 |
This reverts commit 0ca1aa3.
lua encode command./xray base64 encode/decode [-gzip] command
Collaborator
Author
|
带着 lua 脚本到处跑,是自己的还好 |
Medium1992
pushed a commit
to Medium1992/Xray-core-fork
that referenced
this pull request
Oct 13, 2026
Upstream since v26.10.10: TUN inbound on Xray's own TCP/IP stack instead of gVisor (XTLS#7130) and autoSystemDnsToGateway on FreeBSD (XTLS#7123), Hysteria dial cancellation (XTLS#7119) and cleaner lock release (XTLS#7122), golang.org/x/net 0.60.0 (XTLS#7133), inline Lua scripts and the base64 command (XTLS#7132), MASQUE client XMUX and Chrome's User-Agent (XTLS#7121). Conflicts, resolved as follows: - app/proxyman/inbound/inbound.go: XHTTP inbounds keep accepting Mux.Cool TCP sessions (docs/FORK.md); the XUDP-only rule now applies to MASQUE alone, as upstream added it there. - app/router/router.go: upstream's compile-at-Init script engine, with the fork's PickRouteTag fields and needsSniffingAttributes reset kept. - proxy/masque/client.go: upstream's onClose tunnel callback together with the fork's bounded ICMP queue; startTunnel takes the callback. - transport/internet/hysteria/dialer.go: the fork's versions of XTLS#7119 and XTLS#7122 stay (docs/FORK.md), including closing the connection before the response body on a rejected authentication. - go.mod, go.sum: the fork's newer x/net 0.61.0, crypto, sync, sys, text, tools. NewXmuxManager keeps the fork's *XmuxConfig parameter; upstream's new MASQUE and XMUX call sites pass a pointer.
Contributor
Collaborator
Author
|
本来早该改的,杂活干多了就 delay 了。。。 |
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.

scriptas well (on main branch: inline scripts were disabled for now; sandbox-only for now) #7124 (comment)./xray base64 encode和./xray base64 decoderouter:PickOutbound改名为router.Pickoutbound因为它不是对象的成员函数