From a6d9de10bcdb0da0f048dd7665c4a84f8405aa4a Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 9 Feb 2026 21:41:25 +0100 Subject: [PATCH] update --- web/controller/xray_setting.go | 4 +- web/html/settings/xray/basics.html | 160 +++++++++++++++++--------- web/html/settings/xray/outbounds.html | 67 +++++++---- web/html/xray.html | 90 ++++++++++----- web/job/xray_traffic_job.go | 2 +- web/service/outbound.go | 133 +++++++++++++++------ web/service/setting.go | 3 +- web/translation/translate.en_US.toml | 4 +- web/translation/translate.fa_IR.toml | 4 +- web/translation/translate.ru_RU.toml | 4 +- web/translation/translate.zh_CN.toml | 4 +- web/websocket/notifier.go | 2 +- 12 files changed, 320 insertions(+), 157 deletions(-) diff --git a/web/controller/xray_setting.go b/web/controller/xray_setting.go index 2af08094..a48726de 100644 --- a/web/controller/xray_setting.go +++ b/web/controller/xray_setting.go @@ -54,7 +54,7 @@ func (a *XraySettingController) getXraySetting(c *gin.Context) { } outboundTestUrl, _ := a.SettingService.GetXrayOutboundTestUrl() if outboundTestUrl == "" { - outboundTestUrl = "http://www.google.com/gen_204" + outboundTestUrl = "https://www.google.com/generate_204" } urlJSON, _ := json.Marshal(outboundTestUrl) xrayResponse := "{ \"xraySetting\": " + xraySetting + ", \"inboundTags\": " + inboundTags + ", \"outboundTestUrl\": " + string(urlJSON) + " }" @@ -70,7 +70,7 @@ func (a *XraySettingController) updateSetting(c *gin.Context) { } outboundTestUrl := c.PostForm("outboundTestUrl") if outboundTestUrl == "" { - outboundTestUrl = "http://www.google.com/gen_204" + outboundTestUrl = "https://www.google.com/generate_204" } _ = a.SettingService.SetXrayOutboundTestUrl(outboundTestUrl) jsonMsg(c, I18nWeb(c, "pages.settings.toasts.modifySettings"), nil) diff --git a/web/html/settings/xray/basics.html b/web/html/settings/xray/basics.html index 728c8e4d..9a31038a 100644 --- a/web/html/settings/xray/basics.html +++ b/web/html/settings/xray/basics.html @@ -4,18 +4,22 @@ - +