From 4f38541ce91fda660889125e7ed5bb970cdef121 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sat, 23 May 2026 11:45:27 +0200 Subject: [PATCH] fix(xray-update): respect XUI_BIN_FOLDER on Windows The Windows update path hardcoded "bin/xray-windows-amd64.exe", ignoring the configured XUI_BIN_FOLDER. In dev mode (folder set to x-ui) this created a stray bin/ folder while the running binary stayed un-updated. --- web/service/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/service/server.go b/web/service/server.go index e6e7bccb..41c4ffea 100644 --- a/web/service/server.go +++ b/web/service/server.go @@ -853,7 +853,7 @@ func (s *ServerService) UpdateXray(version string) error { // 4. Extract correct binary if runtime.GOOS == "windows" { - targetBinary := filepath.Join("bin", "xray-windows-amd64.exe") + targetBinary := filepath.Join(config.GetBinFolderPath(), "xray-windows-amd64.exe") err = copyZipFile("xray.exe", targetBinary) } else { err = copyZipFile("xray", xray.GetBinaryPath())