mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	Merge pull request #516 from betaxab/rename-sagernet
Protocols: rename AnXray to SagerNet
This commit is contained in:
		| @@ -2,9 +2,9 @@ | |||||||
| 
 | 
 | ||||||
| namespace App\Http\Controllers\Client\Protocols; | namespace App\Http\Controllers\Client\Protocols; | ||||||
| 
 | 
 | ||||||
| class AnXray | class SagerNet | ||||||
| { | { | ||||||
|     public $flag = 'axxray'; |     public $flag = 'sagernet'; | ||||||
|     private $servers; |     private $servers; | ||||||
|     private $user; |     private $user; | ||||||
| 
 | 
 | ||||||
| @@ -74,7 +74,7 @@ class AnXray | |||||||
|         } |         } | ||||||
|         if ((string)$server['network'] === 'ws') { |         if ((string)$server['network'] === 'ws') { | ||||||
|             $wsSettings = $server['networkSettings']; |             $wsSettings = $server['networkSettings']; | ||||||
|             if (isset($wsSettings['path'])) $config['path'] = urlencode($wsSettings['path']); |             if (isset($wsSettings['path'])) $config['path'] = $wsSettings['path']; | ||||||
|             if (isset($wsSettings['headers']['Host'])) $config['host'] = urlencode($wsSettings['headers']['Host']); |             if (isset($wsSettings['headers']['Host'])) $config['host'] = urlencode($wsSettings['headers']['Host']); | ||||||
|         } |         } | ||||||
|         if ((string)$server['network'] === 'grpc') { |         if ((string)$server['network'] === 'grpc') { | ||||||
		Reference in New Issue
	
	Block a user