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:
authorДмитрий Олегович Саенко <saenkodmitriiol@gmail.com>2025-11-01 15:10:27 +0300
committerGitHub <noreply@github.com>2025-11-01 15:10:27 +0300
commit4a75bd0a48db7ea3a2717806c5a9d3dcad31b92d (patch)
tree7f302e7f778fc500a9d6a59b7fdb710ec28eef3b /web/service
parentb0c223c63126a576dffa83a16277fbd95af2db41 (diff)
Feature: add setting certs for subscription while generating for panel (#3578)
Diffstat (limited to 'web/service')
-rw-r--r--web/service/setting.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/service/setting.go b/web/service/setting.go
index c8ce7896..56db346d 100644
--- a/web/service/setting.go
+++ b/web/service/setting.go
@@ -479,10 +479,18 @@ func (s *SettingService) GetSubDomain() (string, error) {
return s.getString("subDomain")
}
+func (s *SettingService) SetSubCertFile(subCertFile string) error {
+ return s.setString("subCertFile", subCertFile)
+}
+
func (s *SettingService) GetSubCertFile() (string, error) {
return s.getString("subCertFile")
}
+func (s *SettingService) SetSubKeyFile(subKeyFile string) error {
+ return s.setString("subKeyFile", subKeyFile)
+}
+
func (s *SettingService) GetSubKeyFile() (string, error) {
return s.getString("subKeyFile")
}