mirror of
				https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
				synced 2025-10-31 08:51:04 +08:00 
			
		
		
		
	feat: Loon 正式支持 Shadowsocks 2022
This commit is contained in:
		
							parent
							
								
									14ca62db4a
								
							
						
					
					
						commit
						95b7557635
					
				| @ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "sub-store", |   "name": "sub-store", | ||||||
|   "version": "2.16.1", |   "version": "2.16.2", | ||||||
|   "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": { | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ export default function Loon_Producer() { | |||||||
|     return { produce }; |     return { produce }; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| function shadowsocks(proxy, includeUnsupportedProxy) { | function shadowsocks(proxy) { | ||||||
|     const result = new Result(proxy); |     const result = new Result(proxy); | ||||||
|     if ( |     if ( | ||||||
|         ![ |         ![ | ||||||
| @ -56,9 +56,8 @@ function shadowsocks(proxy, includeUnsupportedProxy) { | |||||||
|             'aes-256-gcm', |             'aes-256-gcm', | ||||||
|             'chacha20-ietf-poly1305', |             'chacha20-ietf-poly1305', | ||||||
|             'xchacha20-ietf-poly1305', |             'xchacha20-ietf-poly1305', | ||||||
|             ...(includeUnsupportedProxy |             '2022-blake3-aes-128-gcm', | ||||||
|                 ? ['2022-blake3-aes-128-gcm', '2022-blake3-aes-256-gcm'] |             '2022-blake3-aes-256-gcm', | ||||||
|                 : []), |  | ||||||
|         ].includes(proxy.cipher) |         ].includes(proxy.cipher) | ||||||
|     ) { |     ) { | ||||||
|         throw new Error(`cipher ${proxy.cipher} is not supported`); |         throw new Error(`cipher ${proxy.cipher} is not supported`); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 xream
						xream