mirror of
https://github.com/v2board/v2board.git
synced 2025-06-16 06:37:53 +08:00
Merge pull request #752 from Cp0204/features-subscription-optimization
update: Support TCP-HTTP sub rules
This commit is contained in:
@ -128,6 +128,11 @@ class Clash
|
||||
$array['servername'] = $tlsSettings['serverName'];
|
||||
}
|
||||
}
|
||||
if ($server['network'] === 'tcp') {
|
||||
$tcpSettings = $server['networkSettings'];
|
||||
if (isset($tcpSettings['header']['type'])) $array['network'] = $tcpSettings['header']['type'];
|
||||
if (isset($tcpSettings['header']['request']['path'][0])) $array['http-opts']['path'] = $tcpSettings['header']['request']['path'][0];
|
||||
}
|
||||
if ($server['network'] === 'ws') {
|
||||
$array['network'] = 'ws';
|
||||
if ($server['networkSettings']) {
|
||||
|
Reference in New Issue
Block a user