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>2024-08-29 12:27:43 +0300
committermhsanaei <ho3ein.sanaei@gmail.com>2024-08-29 12:27:43 +0300
commitfa43248e3043932a31bc93ff86a2d4a3f1314491 (patch)
treeed9e83e4f352de96e50ebb1f98ec4b525d787307 /sub/sub.go
parentcb3da25bc82b818018476d53fe534aba3a55e1aa (diff)
New - Noise
freedom
Diffstat (limited to 'sub/sub.go')
-rw-r--r--sub/sub.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/sub/sub.go b/sub/sub.go
index 47b6158c..a8a20868 100644
--- a/sub/sub.go
+++ b/sub/sub.go
@@ -92,6 +92,11 @@ func (s *Server) initRouter() (*gin.Engine, error) {
SubJsonFragment = ""
}
+ SubJsonNoise, err := s.settingService.GetSubJsonNoise()
+ if err != nil {
+ SubJsonNoise = ""
+ }
+
SubJsonMux, err := s.settingService.GetSubJsonMux()
if err != nil {
SubJsonMux = ""
@@ -106,7 +111,7 @@ func (s *Server) initRouter() (*gin.Engine, error) {
s.sub = NewSUBController(
g, LinksPath, JsonPath, Encrypt, ShowInfo, RemarkModel, SubUpdates,
- SubJsonFragment, SubJsonMux, SubJsonRules)
+ SubJsonFragment, SubJsonNoise, SubJsonMux, SubJsonRules)
return engine, nil
}