diff options
| author | surbiks <43953720+surbiks@users.noreply.github.com> | 2026-02-09 23:43:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-09 23:43:17 +0300 |
| commit | 4779939424eb047d30161631fd89a9876104084c (patch) | |
| tree | 89e2682aa528281879b3afb535f2b34124a17335 /web/service/setting.go | |
| parent | 4a455aa5322e0803005da2d5d65b85a19dfc42e5 (diff) | |
Add url speed test for outbound (#3767)
* add outbound testing functionality with configurable test URL
* use no kernel tun for conflict errors
Diffstat (limited to 'web/service/setting.go')
| -rw-r--r-- | web/service/setting.go | 10 |
1 files changed, 10 insertions, 0 deletions
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") } |
