mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	Merge branch 'dev' of https://github.com/v2board/v2board into dev
This commit is contained in:
		| @@ -115,18 +115,19 @@ class Clash | |||||||
|             $array['network'] = 'ws'; |             $array['network'] = 'ws'; | ||||||
|             if ($server['networkSettings']) { |             if ($server['networkSettings']) { | ||||||
|                 $wsSettings = $server['networkSettings']; |                 $wsSettings = $server['networkSettings']; | ||||||
|  |                 $array['ws-opts'] = []; | ||||||
|                 if (isset($wsSettings['path']) && !empty($wsSettings['path'])) |                 if (isset($wsSettings['path']) && !empty($wsSettings['path'])) | ||||||
|                     $array['ws-path'] = $wsSettings['path']; |                     $array['ws-opts']['path'] = $wsSettings['path']; | ||||||
|                 if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host'])) |                 if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host'])) | ||||||
|                     $array['ws-headers'] = ['Host' => $wsSettings['headers']['Host']]; |                     $array['ws-opts']['headers'] = ['Host' => $wsSettings['headers']['Host']]; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         if ($server['network'] === 'grpc') { |         if ($server['network'] === 'grpc') { | ||||||
|             $array['network'] = 'grpc'; |             $array['network'] = 'grpc'; | ||||||
|             if ($server['networkSettings']) { |             if ($server['networkSettings']) { | ||||||
|                 $grpcObject = $server['networkSettings']; |                 $grpcSettings = $server['networkSettings']; | ||||||
|                 $array['grpc-opts'] = []; |                 $array['grpc-opts'] = []; | ||||||
|                 $array['grpc-opts']['grpc-service-name'] = $grpcObject['serviceName']; |                 $array['grpc-opts']['grpc-service-name'] = $grpcSettings['serviceName']; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -116,18 +116,19 @@ class Stash | |||||||
|             $array['network'] = 'ws'; |             $array['network'] = 'ws'; | ||||||
|             if ($server['networkSettings']) { |             if ($server['networkSettings']) { | ||||||
|                 $wsSettings = $server['networkSettings']; |                 $wsSettings = $server['networkSettings']; | ||||||
|  |                 $array['ws-opts'] = []; | ||||||
|                 if (isset($wsSettings['path']) && !empty($wsSettings['path'])) |                 if (isset($wsSettings['path']) && !empty($wsSettings['path'])) | ||||||
|                     $array['ws-path'] = $wsSettings['path']; |                     $array['ws-opts']['path'] = $wsSettings['path']; | ||||||
|                 if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host'])) |                 if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host'])) | ||||||
|                     $array['ws-headers'] = ['Host' => $wsSettings['headers']['Host']]; |                     $array['ws-opts']['headers'] = ['Host' => $wsSettings['headers']['Host']]; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         if ($server['network'] === 'grpc') { |         if ($server['network'] === 'grpc') { | ||||||
|             $array['network'] = 'grpc'; |             $array['network'] = 'grpc'; | ||||||
|             if ($server['networkSettings']) { |             if ($server['networkSettings']) { | ||||||
|                 $grpcObject = $server['networkSettings']; |                 $grpcSettings = $server['networkSettings']; | ||||||
|                 $array['grpc-opts'] = []; |                 $array['grpc-opts'] = []; | ||||||
|                 $array['grpc-opts']['grpc-service-name'] = $grpcObject['serviceName']; |                 $array['grpc-opts']['grpc-service-name'] = $grpcSettings['serviceName']; | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user