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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-08-26 16:24:01 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-08-26 16:24:01 +0300
commit1c1f53267ad65b11c849c1c339c78b8c6daf78cb (patch)
tree96657ca8414a83d74c6e385506c5bf266788e704 /web/service
parent8489f5f528ea77fec9d6c2102251da9d16e95780 (diff)
Add encrypt subscription ON/OFF switch
Co-Authored-By: SudoSpace <79229394+sudospaes@users.noreply.github.com>
Diffstat (limited to 'web/service')
-rw-r--r--web/service/setting.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/service/setting.go b/web/service/setting.go
index 6f38f1ef..b1565e1f 100644
--- a/web/service/setting.go
+++ b/web/service/setting.go
@@ -51,6 +51,7 @@ var defaultValueMap = map[string]string{
"subCertFile": "",
"subKeyFile": "",
"subUpdates": "12",
+ "subEncrypt": "true",
"subShowInfo": "true",
}
@@ -397,6 +398,10 @@ func (s *SettingService) GetSubUpdates() (int, error) {
return s.getInt("subUpdates")
}
+func (s *SettingService) GetSubEncrypt() (bool, error) {
+ return s.getBool("subEncrypt")
+}
+
func (s *SettingService) GetSubShowInfo() (bool, error) {
return s.getBool("subShowInfo")
}