XHTTP config: Add "extra" for sharing extra fields #4000
Merged
+16
−0
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.
这件事想了很久怎么设计,最终决定 直接分享原始 JSON,
其实前天突然写了 stream-up 模式就是为了上车上个月我已说过,若要分享数量众多的、低频的、不断变化的这些参数,反复更新分享链接标准、等待各个 GUI 跟进绝对是灾难
况且这些参数层级、形式多样,设计进分享链接绝对酸爽,
况且有些客户端根本就不给这些参数写 UI正好原始 JSON 本身就已经以不冗杂的方式包含了所有信息,没有必要再重新设计一遍
若 extra 存在,则整个取代 xhttpSettings,除了 host、path、mode,比如下面生效的是 path-a 和 xmux-b:
可能出于安全考虑,目前填在 extra 中的 downloadSettings 会被删掉 sockopt,虽然 downloadSettings 还是比上行能分享的内容更多,似乎不太公平,但又不好往外移 extra,否则不如不断外移、直接做 Xray JSON 订阅,结果分享链接还是残的XHTTP 分享链接标准已加上 mode 和 extra(客户端至少应当有这四个参数),并跟进了近期 Xray-core 的改动:#716
补充说明:#3994 (comment) #3994 (comment)