mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-22 18:48:14 -05:00
fix: correct know issues
This commit is contained in:
parent
ef8cc8b9a0
commit
0bbdf7a558
@ -184,15 +184,21 @@ class SingBox implements ProtocolInterface
|
|||||||
'fingerprint' => Helper::getRandFingerprint()
|
'fingerprint' => Helper::getRandFingerprint()
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
if ($serverName = data_get($protocol_settings, 'tls_settings.server_name')) {
|
|
||||||
$tlsConfig['server_name'] = $serverName;
|
switch ($protocol_settings['tls']) {
|
||||||
}
|
case 1:
|
||||||
if ($protocol_settings['tls'] == 2) {
|
if ($serverName = data_get($protocol_settings, 'tls_settings.server_name')) {
|
||||||
$tlsConfig['reality'] = [
|
$tlsConfig['server_name'] = $serverName;
|
||||||
'enabled' => true,
|
}
|
||||||
'public_key' => data_get($protocol_settings, 'reality_settings.public_key'),
|
break;
|
||||||
'short_id' => data_get($protocol_settings, 'reality_settings.short_id')
|
case 2:
|
||||||
];
|
$tlsConfig['server_name'] = data_get($protocol_settings, 'reality_settings.server_name');
|
||||||
|
$tlsConfig['reality'] = [
|
||||||
|
'enabled' => true,
|
||||||
|
'public_key' => data_get($protocol_settings, 'reality_settings.public_key'),
|
||||||
|
'short_id' => data_get($protocol_settings, 'reality_settings.short_id')
|
||||||
|
];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$array['tls'] = $tlsConfig;
|
$array['tls'] = $tlsConfig;
|
||||||
|
Loading…
Reference in New Issue
Block a user