mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-10 00:52:40 +00:00
feat: 优化日志, Loon 解析器自动读取 build
This commit is contained in:
@@ -361,10 +361,12 @@ function vless(proxy, includeUnsupportedProxy) {
|
||||
['xtls-rprx-vision'].includes(proxy.flow)
|
||||
) {
|
||||
isReality = true;
|
||||
} else if (proxy['reality-opts'] || proxy.flow) {
|
||||
} else if (proxy['reality-opts']) {
|
||||
throw new Error(
|
||||
`VLESS XTLS/REALITY with flow(${proxy.flow}) is not supported`,
|
||||
`VLESS REALITY with flow(${proxy.flow}) is not supported`,
|
||||
);
|
||||
} else if (proxy.flow) {
|
||||
throw new Error(`VLESS XTLS is not supported`);
|
||||
}
|
||||
}
|
||||
const result = new Result(proxy);
|
||||
@@ -416,6 +418,7 @@ function vless(proxy, includeUnsupportedProxy) {
|
||||
|
||||
// sni
|
||||
if (isReality) {
|
||||
result.appendIfPresent(`,flow=${proxy.flow}`, 'flow');
|
||||
result.appendIfPresent(`,sni=${proxy.sni}`, 'sni');
|
||||
result.appendIfPresent(
|
||||
`,public-key="${proxy['reality-opts']['public-key']}"`,
|
||||
|
||||
Reference in New Issue
Block a user