From a0f8b4df054fdfef0d85c67e61ff5b7a941f0e9a Mon Sep 17 00:00:00 2001 From: mercury Date: Tue, 9 Apr 2024 15:16:34 +0400 Subject: [PATCH] fix sing-box sub --- app/bot.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index 4614320..3c2be4c 100644 --- a/app/bot.php +++ b/app/bot.php @@ -3641,7 +3641,8 @@ DNS-over-HTTPS with IP: } $c['outbounds'][0]['server'] = $domain; - $c['outbounds'][0]['tls']['reality']['public_key'] = $key; + $c['outbounds'][0]['uuid'] = $key; + $c['outbounds'][0]['tls']['reality']['public_key'] = $pac['xray']; $c['outbounds'][0]['tls']['server_name'] = $xr['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0]; $c['outbounds'][0]['tls']['reality']['short_id'] = $xr['inbounds'][0]['streamSettings']['realitySettings']['shortIds'][0]; $c['route']['rules'][1]['domain_suffix'] = array_keys(array_filter($pac['includelist']));