From 4779939424eb047d30161631fd89a9876104084c Mon Sep 17 00:00:00 2001 From: surbiks <43953720+surbiks@users.noreply.github.com> Date: Tue, 10 Feb 2026 00:13:17 +0330 Subject: Add url speed test for outbound (#3767) * add outbound testing functionality with configurable test URL * use no kernel tun for conflict errors --- web/service/setting.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'web/service/setting.go') diff --git a/web/service/setting.go b/web/service/setting.go index 3fa37f44..495dc522 100644 --- a/web/service/setting.go +++ b/web/service/setting.go @@ -78,6 +78,8 @@ var defaultValueMap = map[string]string{ "warp": "", "externalTrafficInformEnable": "false", "externalTrafficInformURI": "", + "xrayOutboundTestUrl": "https://www.google.com/generate_204", + // LDAP defaults "ldapEnable": "false", "ldapHost": "", @@ -271,6 +273,14 @@ func (s *SettingService) GetXrayConfigTemplate() (string, error) { return s.getString("xrayTemplateConfig") } +func (s *SettingService) GetXrayOutboundTestUrl() (string, error) { + return s.getString("xrayOutboundTestUrl") +} + +func (s *SettingService) SetXrayOutboundTestUrl(url string) error { + return s.setString("xrayOutboundTestUrl", url) +} + func (s *SettingService) GetListen() (string, error) { return s.getString("webListen") } -- cgit v1.2.3