mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
pr #109
This commit is contained in:
parent
c81cb8acca
commit
d2a0422f64
@ -48,7 +48,7 @@ class ClientController extends Controller
|
|||||||
foreach ($server as $item) {
|
foreach ($server as $item) {
|
||||||
$uri .= "vmess=" . $item->host . ":" . $item->port . ", method=none, password=" . $user->v2ray_uuid . ", fast-open=false, udp-relay=false, tag=" . $item->name;
|
$uri .= "vmess=" . $item->host . ":" . $item->port . ", method=none, password=" . $user->v2ray_uuid . ", fast-open=false, udp-relay=false, tag=" . $item->name;
|
||||||
if ($item->network == 'ws') {
|
if ($item->network == 'ws') {
|
||||||
$uri .= ', 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)) $uri .= ', obfs-uri=' . $wsSettings->path;
|
if (isset($wsSettings->path)) $uri .= ', obfs-uri=' . $wsSettings->path;
|
||||||
|
Loading…
Reference in New Issue
Block a user