mirror of
				https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
				synced 2025-10-31 21:21:07 +08:00 
			
		
		
		
	feat(uri): VMess URI 输入支持 allowInsecure(输出不支持, 与 2dust/v2rayN 分享链接逻辑一致)
This commit is contained in:
		
							parent
							
								
									97caeed208
								
							
						
					
					
						commit
						19418b631f
					
				| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "sub-store", |   "name": "sub-store", | ||||||
|   "version": "2.14.360", |   "version": "2.14.361", | ||||||
|   "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", |   "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.", | ||||||
|   "main": "src/main.js", |   "main": "src/main.js", | ||||||
|   "scripts": { |   "scripts": { | ||||||
|  | |||||||
| @ -296,6 +296,11 @@ function URI_VMess() { | |||||||
|                     ? !params.verify_cert |                     ? !params.verify_cert | ||||||
|                     : undefined, |                     : undefined, | ||||||
|             }; |             }; | ||||||
|  |             if (!proxy['skip-cert-verify'] && isPresent(params.allowInsecure)) { | ||||||
|  |                 proxy['skip-cert-verify'] = /(TRUE)|1/i.test( | ||||||
|  |                     params.allowInsecure, | ||||||
|  |                 ); | ||||||
|  |             } | ||||||
|             // https://github.com/2dust/v2rayN/wiki/%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E6%A0%BC%E5%BC%8F%E8%AF%B4%E6%98%8E(ver-2)
 |             // https://github.com/2dust/v2rayN/wiki/%E5%88%86%E4%BA%AB%E9%93%BE%E6%8E%A5%E6%A0%BC%E5%BC%8F%E8%AF%B4%E6%98%8E(ver-2)
 | ||||||
|             if (proxy.tls && proxy.sni) { |             if (proxy.tls && proxy.sni) { | ||||||
|                 proxy.sni = params.sni; |                 proxy.sni = params.sni; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 xream
						xream