mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 08:52:43 +08:00
修正路径构建逻辑,移除多余的前缀,确保代理IP正确传递
This commit is contained in:
4
明文源码.js
4
明文源码.js
@@ -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'))) {
|
||||
最终路径 = `/${伪装域名}${最终路径}`;
|
||||
|
||||
Reference in New Issue
Block a user