fix: 修复vless的 ws、grpc订阅问题

This commit is contained in:
xboard
2023-11-17 16:34:16 +08:00
parent aa57264d53
commit b5ec7459a6
5 changed files with 10 additions and 10 deletions

View File

@@ -217,8 +217,8 @@ class ClashMeta
if ($server['network'] === 'ws') {
$array['network'] = 'ws';
if ($server['networkSettings']) {
$wsSettings = $server['networkSettings'];
if ($server['network_settings']) {
$wsSettings = $server['network_settings'];
$array['ws-opts'] = [];
if (isset($wsSettings['path']) && !empty($wsSettings['path']))
$array['ws-opts']['path'] = $wsSettings['path'];