mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 00:29:09 +08:00
update
This commit is contained in:
parent
145f55ae29
commit
c6461f0bdf
@ -48,7 +48,8 @@ class ClientController extends Controller
|
|||||||
$uri .= ', obfs=ws';
|
$uri .= ', obfs=ws';
|
||||||
if ($item->settings) {
|
if ($item->settings) {
|
||||||
$wsSettings = json_decode($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";
|
$uri .= "\r\n";
|
||||||
|
@ -54,7 +54,8 @@ class TutorialController extends Controller
|
|||||||
'data' => [
|
'data' => [
|
||||||
'tutorials' => $tutorial,
|
'tutorials' => $tutorial,
|
||||||
'safe_area_var' => [
|
'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')
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user