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 @@ - +