mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
update: clash compatible
This commit is contained in:
parent
3e78ac1625
commit
ec946918c9
@ -120,6 +120,11 @@ class Clash
|
|||||||
$array['ws-opts']['path'] = $wsSettings['path'];
|
$array['ws-opts']['path'] = $wsSettings['path'];
|
||||||
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
|
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
|
||||||
$array['ws-opts']['headers'] = ['Host' => $wsSettings['headers']['Host']];
|
$array['ws-opts']['headers'] = ['Host' => $wsSettings['headers']['Host']];
|
||||||
|
// TODO: 2022.06.01 remove it
|
||||||
|
if (isset($wsSettings['path']) && !empty($wsSettings['path']))
|
||||||
|
$array['ws-path'] = $wsSettings['path'];
|
||||||
|
if (isset($wsSettings['headers']['Host']) && !empty($wsSettings['headers']['Host']))
|
||||||
|
$array['ws-headers'] = ['Host' => $wsSettings['headers']['Host']];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($server['network'] === 'grpc') {
|
if ($server['network'] === 'grpc') {
|
||||||
|
Loading…
Reference in New Issue
Block a user