mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
fix quantumult sub
This commit is contained in:
parent
8d56db2bf6
commit
cc673cdbd1
@ -68,7 +68,7 @@ class ClientController extends Controller
|
||||
$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');
|
||||
if ($item->network === 'ws') {
|
||||
$uri .= ', obfs=' . ($item->tls ? 'wss' : 'ws');
|
||||
$str .= ', obfs=' . ($item->tls ? 'wss' : 'ws');
|
||||
if ($item->networkSettings) {
|
||||
$wsSettings = json_decode($item->networkSettings);
|
||||
if (isset($wsSettings->path)) $str .= ', obfs-path="' . $wsSettings->path . '"';
|
||||
|
Loading…
Reference in New Issue
Block a user