ultimate docker solution

This commit is contained in:
Alireza Ahmadi
2024-04-18 22:34:38 +02:00
parent c1c05c4863
commit 3d263d500f
10 changed files with 156 additions and 13 deletions
+4 -1
View File
@@ -26,7 +26,10 @@ func (s *SingBoxService) GetStats() error {
}
func (s *SingBoxService) GetSysStats() (*map[string]interface{}, error) {
s.V2rayAPI.Init(ApiAddr)
err := s.V2rayAPI.Init(ApiAddr)
if err != nil {
return nil, err
}
defer s.V2rayAPI.Close()
resp, err := s.V2rayAPI.GetSysStats()
if err != nil {