mirror of
https://github.com/sub-store-org/Sub-Store.git
synced 2026-11-28 23:40:30 +00:00
fix: ip-flag does not work on Loon
The node parameter should not include proxy name
This commit is contained in:
1 parent
6484edb5db
commit
0a31f5d5d7
1 file changed
+8
-1
+8
-1
@@ -117,7 +117,14 @@ async function queryIpApi(proxy) {
|
||||
resolve(cached);
|
||||
}
|
||||
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({
|
||||
url,
|
||||
headers,
|
||||
|
||||
Reference in new issue
Block a user