From 5d36fa750a198f94026718f9624a2360ec7d9be2 Mon Sep 17 00:00:00 2001 From: penguinehis Date: Mon, 1 Dec 2025 00:36:55 -0300 Subject: [PATCH] Fix Xray XHTTP --- version.txt | 2 +- xray.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/version.txt b/version.txt index 26e4390..0417257 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -38 Year Of the Noodle Dragon \ No newline at end of file +39 Year Of the Noodle Dragon \ No newline at end of file diff --git a/xray.php b/xray.php index e0fa4f5..9fc3f4e 100644 --- a/xray.php +++ b/xray.php @@ -156,8 +156,8 @@ function xrayGenerateConfig($port, string $network = 'xhttp') $streamSettings['security'] = 'tls'; $streamSettings['tlsSettings'] = [ 'certificates' => [[ - 'certificateFile' => '/opt/DragonCore/ssl/fullchain.pem', - 'keyFile' => '/opt/DragonCore/ssl/privkey.pem', + 'certificateFile' => '/opt/DragonCoreSSL/fullchain.pem', + 'keyFile' => '/opt/DragonCoreSSL/privkey.pem', ]], 'alpn' => ['http/1.1'], ]; @@ -448,7 +448,7 @@ function xrayListUsers() function xrayCert(string $domain) { - $sslDir = '/opt/DragonCore/ssl'; + $sslDir = '/opt/DragonCoreSSL'; $keyFile = $sslDir . '/privkey.pem'; $crtFile = $sslDir . '/fullchain.pem';