Add encrypt subscription ON/OFF switch

Co-Authored-By: SudoSpace <79229394+sudospaes@users.noreply.github.com>
This commit is contained in:
MHSanaei
2023-08-26 16:54:01 +03:30
parent 8489f5f528
commit 1c1f53267a
11 changed files with 25 additions and 1 deletions

View File

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