This commit is contained in:
root 2019-11-11 20:37:56 +08:00
parent 1d79bea0f5
commit c935cec6c0
2 changed files with 11 additions and 1 deletions

View File

@ -109,6 +109,16 @@ class ClientController extends Controller
if ($item->tls) {
$array['tls'] = true;
}
if ($item->network == 'ws') {
$array['network'] = $item->network;
if ($item->settings) {
$wsSettings = json_decode($item->settings);
if ($wsSettings->path) $array['ws-path'] = $wsSettings->path;
if ($wsSettings->headers->Host) $array['ws-headers'] = [
'Host' => $wsSettings->headers->Host
];
}
}
array_push($proxy, $array);
array_push($proxies, $item->name);
}

2
public/umi.js vendored

File diff suppressed because one or more lines are too long