From 0710ef51fd8e15b367a439717e1d1f2286bb4606 Mon Sep 17 00:00:00 2001 From: mercury Date: Sat, 8 Nov 2025 22:54:18 +0400 Subject: [PATCH] fix domain in download config vless --- app/bot.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/bot.php b/app/bot.php index 3510cb1..87c43f4 100644 --- a/app/bot.php +++ b/app/bot.php @@ -1903,10 +1903,12 @@ class Bot public function dw($u, $t) { - $c = $this->getXray()['inbounds'][0]['settings']['clients'][$u]; - $_GET['s'] = $c['id']; - $_GET['t'] = $t; - $conf = $this->subscription(1); + $pac = $this->getPacConf(); + $c = $this->getXray()['inbounds'][0]['settings']['clients'][$u]; + $_GET['s'] = $c['id']; + $_GET['t'] = $t; + $_SERVER['SERVER_NAME'] = $this->getDomain($pac['transport'] != 'Reality'); + $conf = $this->subscription(1); $this->sendFile($this->input['from'], new CURLStringFile($conf, $c['email'] . ($t == 'cl' ? '_mihomo.yaml' :($t == 'si' ? '_singbox.json' : '_v2ray.json')))); }