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 'sub/subController.go')
-rw-r--r--sub/subController.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/sub/subController.go b/sub/subController.go
index 8de5b5df..dc66c892 100644
--- a/sub/subController.go
+++ b/sub/subController.go
@@ -27,14 +27,15 @@ func NewSUBController(
update string,
jsonFragment string,
) *SUBController {
+ sub := NewSubService(showInfo, rModel)
a := &SUBController{
subPath: subPath,
subJsonPath: jsonPath,
subEncrypt: encrypt,
updateInterval: update,
- subService: NewSubService(showInfo, rModel),
- subJsonService: NewSubJsonService(jsonFragment),
+ subService: sub,
+ subJsonService: NewSubJsonService(jsonFragment, sub),
}
a.initRouter(g)
return a