Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Liu <30622363+PedroLiu1999@users.noreply.github.com>2026-04-20 01:41:50 +0300
committerGitHub <noreply@github.com>2026-04-20 01:41:50 +0300
commit36b2a586756fc279304170976c9d486498d55919 (patch)
tree71a1dd665fa14a0fc9dad28c3ef421e3e3d7fe7c /web/service/setting.go
parent59e98592251cac1dedb93905cb368a3ba93ad19c (diff)
feat: Add NordVPN NordLynx (WireGuard) integration (#3827)
* feat: Add NordVPN NordLynx (WireGuard) integration with dedicated UI and backend services. * remove limit=10 to get all servers * feat: add city selector to NordVPN modal * feat: auto-select best server on country/city change * feat: simplify filter logic and enforce > 7% load * fix --------- Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
Diffstat (limited to 'web/service/setting.go')
-rw-r--r--web/service/setting.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/service/setting.go b/web/service/setting.go
index 468a7960..04d8f6a8 100644
--- a/web/service/setting.go
+++ b/web/service/setting.go
@@ -80,6 +80,7 @@ var defaultValueMap = map[string]string{
"subJsonRules": "",
"datepicker": "gregorian",
"warp": "",
+ "nord": "",
"externalTrafficInformEnable": "false",
"externalTrafficInformURI": "",
"xrayOutboundTestUrl": "https://www.google.com/generate_204",
@@ -598,6 +599,14 @@ func (s *SettingService) SetWarp(data string) error {
return s.setString("warp", data)
}
+func (s *SettingService) GetNord() (string, error) {
+ return s.getString("nord")
+}
+
+func (s *SettingService) SetNord(data string) error {
+ return s.setString("nord", data)
+}
+
func (s *SettingService) GetExternalTrafficInformEnable() (bool, error) {
return s.getBool("externalTrafficInformEnable")
}