diff --git a/app/bot.php b/app/bot.php
index f8f1dcb..3e52fa5 100644
--- a/app/bot.php
+++ b/app/bot.php
@@ -4215,7 +4215,9 @@ DNS-over-HTTPS with IP:
$c = $this->getXray();
$p = $this->getPacConf();
$text[] = "Menu -> " . $this->i18n('xray');
- $text[] = "fake domain: {$c['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0]}";
+ if (!empty($fake = $c['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0])) {
+ $text[] = "fake domain: $fake";
+ }
$text[] = 'transport: ' . ($p['transport'] ?: 'Reality');
$data[] = [
[
@@ -5517,7 +5519,6 @@ DNS-over-HTTPS with IP:
$x = $this->getXray();
$p['transport'] = $ws ? 'Websocket' : 'Reality';
if (!empty($ws)) {
- $this->setUpstreamDomain('t');
$p['reality']['domain'] = $x['inbounds'][0]['streamSettings']['realitySettings']['serverNames'][0];
$p['reality']['destination'] = $x['inbounds'][0]['streamSettings']['realitySettings']['dest'];
$p['reality']['shortId'] = $x['inbounds'][0]['streamSettings']['realitySettings']['shortIds'][0];
@@ -5558,6 +5559,7 @@ DNS-over-HTTPS with IP:
"security" => "reality"
];
}
+ $this->setUpstreamDomain($ws ? 't' : $p['reality']['domain']);
$this->setPacConf($p);
$this->restartXray($x);
$this->xray();
diff --git a/version b/version
index f1259ed..1e4757a 100644
--- a/version
+++ b/version
@@ -1,3 +1,5 @@
+08.09.2024 v1.47
+- fix websocket -> reality
03.09.2024 v1.46.2
- fix link v2ray
03.09.2024 v1.46.1