From c352270b39f09294c585322b124d93d07e0a8995 Mon Sep 17 00:00:00 2001 From: mercury Date: Wed, 26 Nov 2025 01:03:55 +0400 Subject: [PATCH] Fix overwriting fingerprint for vray --- app/bot.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/bot.php b/app/bot.php index 47601d5..4568fd4 100644 --- a/app/bot.php +++ b/app/bot.php @@ -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~', ]