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:
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")
}