Add ws-headers check

This commit is contained in:
gosip443
2021-07-22 16:10:00 +08:00
committed by 兔姬桑
parent 1aab2f8908
commit be5d4c6590

View File

@@ -63,7 +63,9 @@ class Clash
if ($server['v2_net'] === 'ws') {
$array['ws-path'] = $server['v2_path'];
$array['ws-headers'] = ['Host' => $server['v2_host']];
if ($server['v2_host']) {
$array['ws-headers'] = ['Host' => $server['v2_host']];
}
}
return $array;