This commit is contained in:
Tokumeikoi 2020-03-13 13:47:02 +08:00
parent c81cb8acca
commit d2a0422f64

View File

@ -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;