clean up buildvmess()

This commit is contained in:
Julian Liu 2020-11-20 00:53:53 +08:00 committed by GitHub
parent 589eec9392
commit 7fe8a5b239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,7 @@ class Clash
} }
} }
if ($server['network'] === 'ws') { if ($server['network'] === 'ws') {
$array['network'] = 'ws';
if ($server['networkSettings']) { if ($server['networkSettings']) {
$wsSettings = json_decode($server['networkSettings'], true); $wsSettings = json_decode($server['networkSettings'], true);
if (isset($wsSettings['path']) && !empty($wsSettings['path'])) if (isset($wsSettings['path']) && !empty($wsSettings['path']))