修正路径构建逻辑,移除多余的前缀,确保代理IP正确传递

This commit is contained in:
cmliu
2025-04-13 05:01:51 +08:00
parent 1253c16d1f
commit e2dfb99aec

View File

@@ -138,7 +138,7 @@ export default {
if (url.searchParams.has('notls')) noTLS = 'true';
if (url.searchParams.has('proxyip')) {
path = `/?proxyip=${url.searchParams.get('proxyip')}`;
path = `/proxyip=${url.searchParams.get('proxyip')}`;
RproxyIP = 'false';
} else if (url.searchParams.has('socks5')) {
path = `/?socks5=${url.searchParams.get('socks5')}`;
@@ -1836,7 +1836,7 @@ function 生成本地订阅(host, UUID, noTLS, newAddressesapi, newAddressescsv,
let 最终路径 = path;
let 节点备注 = '';
const matchingProxyIP = proxyIPPool.find(proxyIP => proxyIP.includes(address));
if (matchingProxyIP) 最终路径 = `/?proxyip=${matchingProxyIP}`;
if (matchingProxyIP) 最终路径 = `/proxyip=${matchingProxyIP}`;
if (proxyhosts.length > 0 && (伪装域名.includes('.workers.dev'))) {
最终路径 = `/${伪装域名}${最终路径}`;