mirror of
				https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
				synced 2025-10-31 18:21:10 +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); | ||||
|         } | ||||
|         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, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Peng-YM
						Peng-YM