mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-06 20:50:01 +00:00
Add ws-headers check
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user