mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-06-04 11:13:59 +08:00
fix: ip-flag does not work on Loon
The node parameter should not include proxy name
This commit is contained in:
parent
6484edb5db
commit
0a31f5d5d7
@ -117,7 +117,14 @@ async function queryIpApi(proxy) {
|
|||||||
resolve(cached);
|
resolve(cached);
|
||||||
}
|
}
|
||||||
const url = `http://ip-api.com/json`;
|
const url = `http://ip-api.com/json`;
|
||||||
const node = ProxyUtils.produce([proxy], target);
|
let node = ProxyUtils.produce([proxy], target);
|
||||||
|
|
||||||
|
// Loon 需要去掉节点名字
|
||||||
|
if (isLoon) {
|
||||||
|
const s = node.indexOf("=");
|
||||||
|
node = node.substring(s + 1);
|
||||||
|
}
|
||||||
|
|
||||||
$.http.get({
|
$.http.get({
|
||||||
url,
|
url,
|
||||||
headers,
|
headers,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user