From ef01301f35d8fe2fb3c71c01a2754d8a89a5fa13 Mon Sep 17 00:00:00 2001 From: Nova Date: Fri, 21 Nov 2025 18:17:48 +0330 Subject: [PATCH] fix hysteria migrate --- src/dataStore/Database.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dataStore/Database.cpp b/src/dataStore/Database.cpp index 7b3a5d7..897dad9 100644 --- a/src/dataStore/Database.cpp +++ b/src/dataStore/Database.cpp @@ -258,7 +258,7 @@ namespace Configs { bean = new Configs::TrojanVLESSBean(Configs::TrojanVLESSBean::proxy_VLESS); outbound = new Configs::vless(); } else if (type == "hysteria" || type == "hysteria2") { - bean = new Configs::QUICBean(Configs::QUICBean::proxy_Hysteria); + bean = new Configs::QUICBean(type == "hysteria" ? Configs::QUICBean::proxy_Hysteria : Configs::QUICBean::proxy_Hysteria2); outbound = new Configs::hysteria(); } else if (type == "tuic") { bean = new Configs::QUICBean(Configs::QUICBean::proxy_TUIC);