Fix overwriting fingerprint for vray

This commit is contained in:
mercury
2025-11-26 01:03:55 +04:00
parent 2ee6c3392b
commit c352270b39
+3 -2
View File
@@ -7290,6 +7290,7 @@ DNS-over-HTTPS with IP:
'id' => '~uid~',
'encryption' => 'none',
];
$fingerprint = $c['outbounds'][$index]['streamSettings']['realitySettings']['fingerprint'] ?? $c['outbounds'][$index]['streamSettings']['tlsSettings']['fingerprint'] ?? 'chrome';
if ($pac['transport'] != 'Reality') {
$c['outbounds'][$index]['streamSettings'] = [
"network" => "ws",
@@ -7300,7 +7301,7 @@ DNS-over-HTTPS with IP:
"tlsSettings" => [
"allowInsecure" => false,
"serverName" => '~domain~',
"fingerprint" => "chrome"
"fingerprint" => $fingerprint
]
];
unset($c['outbounds'][$index]['mux']);
@@ -7311,7 +7312,7 @@ DNS-over-HTTPS with IP:
"security" => "reality",
"realitySettings" => [
"serverName" => '~server_name~',
"fingerprint" => "chrome",
"fingerprint" => $fingerprint,
"publicKey" => '~public_key~',
"shortId" => '~short_id~',
]