mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	pr #109
This commit is contained in:
		| @@ -68,7 +68,7 @@ class ClientController extends Controller | |||||||
|             $str = ''; |             $str = ''; | ||||||
|             $str .= $item->name . '= vmess, ' . $item->host . ', ' . $item->port . ', chacha20-ietf-poly1305, "' . $user->v2ray_uuid . '", over-tls=' . ($item->tls ? "true" : "false") . ', certificate=0, group=' . config('v2board.app_name', 'V2Board'); |             $str .= $item->name . '= vmess, ' . $item->host . ', ' . $item->port . ', chacha20-ietf-poly1305, "' . $user->v2ray_uuid . '", over-tls=' . ($item->tls ? "true" : "false") . ', certificate=0, group=' . config('v2board.app_name', 'V2Board'); | ||||||
|             if ($item->network === 'ws') { |             if ($item->network === 'ws') { | ||||||
|                 $str .= ', obfs=ws'; |                 $uri .= ', obfs=' . $item->tls ? 'wss' : 'ws'; | ||||||
|                 if ($item->networkSettings) { |                 if ($item->networkSettings) { | ||||||
|                     $wsSettings = json_decode($item->networkSettings); |                     $wsSettings = json_decode($item->networkSettings); | ||||||
|                     if (isset($wsSettings->path)) $str .= ', obfs-path="' . $wsSettings->path . '"'; |                     if (isset($wsSettings->path)) $str .= ', obfs-path="' . $wsSettings->path . '"'; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user