From 486a2c5959b842e6dd5048f7e5a175de9ae29310 Mon Sep 17 00:00:00 2001 From: mercury Date: Wed, 9 Oct 2024 21:03:15 +0400 Subject: [PATCH] fix create windows service box --- app/bot.php | 2 +- version | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/bot.php b/app/bot.php index fb135be..3569e4b 100644 --- a/app/bot.php +++ b/app/bot.php @@ -4876,7 +4876,7 @@ DNS-over-HTTPS with IP: copy('/singbox/singbox.zip', $n); $zip = new ZipArchive(); $zip->open($n, ZipArchive::CREATE); - $zip->addFile('/singbox/winsw3.xml', 'winsw3.xml'); + $zip->addFromString('winsw3.xml', preg_replace('#~url~#', $link, file_get_contents('/singbox/winsw3.xml'))); $zip->close(); header('Content-Disposition: attachment; filename="singbox.zip"'); echo file_get_contents($n); diff --git a/version b/version index ec02892..5458339 100644 --- a/version +++ b/version @@ -1,3 +1,5 @@ +09.10.2024 v1.65 +- фикс создания архива windows service singbox 06.10.2024 v1.64.1 - добавление html заглушки через меню 06.10.2024 v1.64