diff --git a/app/Http/Controllers/ClientController.php b/app/Http/Controllers/ClientController.php index 082d4155..fdb0a166 100755 --- a/app/Http/Controllers/ClientController.php +++ b/app/Http/Controllers/ClientController.php @@ -48,7 +48,8 @@ class ClientController extends Controller $uri .= ', obfs=ws'; if ($item->settings) { $wsSettings = json_decode($item->settings); - if (isset($wsSettings->path)) $uri .= ', obfs-uri='.$wsSettings->path; + if (isset($wsSettings->path)) $uri .= ', obfs-uri=' . $wsSettings->path; + if (isset($wsSettings->headers->Host)) $uri .= ', obfs-host=' . $wsSettings->headers->Host; } } $uri .= "\r\n"; diff --git a/app/Http/Controllers/TutorialController.php b/app/Http/Controllers/TutorialController.php index 449d5249..7dd0ad52 100644 --- a/app/Http/Controllers/TutorialController.php +++ b/app/Http/Controllers/TutorialController.php @@ -54,7 +54,8 @@ class TutorialController extends Controller 'data' => [ 'tutorials' => $tutorial, 'safe_area_var' => [ - 'subscribe_url' => config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'] + 'subscribe_url' => config('v2board.subscribe_url', config('v2board.app_url', env('APP_URL'))) . '/api/v1/client/subscribe?token=' . $user['token'], + 'app_name' => config('v2board.app_name', 'V2board') ] ] ];