Skip to content

Commit bf7f6c7

Browse files
committed
feat: 优化生成维列斯链接的路径编码方式,移除临时域名中转服务的注释
1 parent 81cb0a0 commit bf7f6c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_worker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,15 +2062,15 @@ function 生成本地订阅(host, UUID, noTLS, newAddressesapi, newAddressescsv,
20622062
let 节点备注 = '';
20632063
const matchingProxyIP = proxyIPPool.find(proxyIP => proxyIP.includes(address));
20642064
if (matchingProxyIP) 最终路径 = `/proxyip=${matchingProxyIP}`;
2065-
2065+
/*
20662066
if (proxyhosts.length > 0 && (伪装域名.includes('.workers.dev'))) {
20672067
最终路径 = `/${伪装域名}${最终路径}`;
20682068
伪装域名 = proxyhosts[Math.floor(Math.random() * proxyhosts.length)];
20692069
节点备注 = ` 已启用临时域名中转服务,请尽快绑定自定义域!`;
20702070
}
2071-
2071+
*/
20722072
const 协议类型 = atob(啥啥啥_写的这是啥啊);
2073-
const 维列斯Link = `${协议类型}://${UUID}@${address}:${port + atob('P2VuY3J5cHRpb249bm9uZSZzZWN1cml0eT10bHMmc25pPQ==') + 伪装域名}&fp=random&type=ws&host=${伪装域名}&path=${encodeURIComponent(最终路径) + allowInsecure}&fragment=1,40-60,30-50,tlshello#${encodeURIComponent(addressid + 节点备注)}`;
2073+
const 维列斯Link = `${协议类型}://${UUID}@${address}:${port + atob('P2VuY3J5cHRpb249bm9uZSZzZWN1cml0eT10bHMmc25pPQ==') + 伪装域名}&fp=random&type=ws&host=${伪装域名}&path=${encodeURIComponent(最终路径) + allowInsecure}&fragment=${encodeURIComponent('1,40-60,30-50,tlshello')}#${encodeURIComponent(addressid + 节点备注)}`;
20742074

20752075
return 维列斯Link;
20762076
}).join('\n');

0 commit comments

Comments
 (0)