From d8b77508a5f713151a4e2537da5029e162169e9a Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Wed, 10 Jun 2026 09:48:44 +0800 Subject: [PATCH] Use libVersion constant in CheckVersionX --- libv2ray_main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libv2ray_main.go b/libv2ray_main.go index 0f25725..d18ee0b 100644 --- a/libv2ray_main.go +++ b/libv2ray_main.go @@ -35,6 +35,7 @@ const ( xudpBaseKey = "xray.xudp.basekey" tunFdKey = "xray.tun.fd" browserDialerAddress = "xray.browser.dialer" + libVersion = 38 // Library version, update here only ) // CoreController represents a controller for managing Xray core instance lifecycle @@ -231,8 +232,7 @@ func MeasureOutboundDelay(ConfigureFileContent string, url string) (int64, error // CheckVersionX returns the library and Xray versions func CheckVersionX() string { - var version = 37 - return fmt.Sprintf("Lib v%d, Xray-core v%s", version, core.Version()) + return fmt.Sprintf("Lib v%d, Xray-core v%s", libVersion, core.Version()) } // ReconcileBrowserDialer updates the browser dialer address and reloads its configuration