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 'web/controller/inbound.go')
-rw-r--r--web/controller/inbound.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/web/controller/inbound.go b/web/controller/inbound.go
index 511afd64..cc34d1d8 100644
--- a/web/controller/inbound.go
+++ b/web/controller/inbound.go
@@ -232,14 +232,12 @@ func (a *InboundController) resetClientTraffic(c *gin.Context) {
}
email := c.Param("email")
- needRestart := true
-
- needRestart, err = a.inboundService.ResetClientTraffic(id, email)
+ needRestart, err := a.inboundService.ResetClientTraffic(id, email)
if err != nil {
jsonMsg(c, "Something went wrong!", err)
return
}
- jsonMsg(c, "traffic reseted", nil)
+ jsonMsg(c, "Traffic has been reset", nil)
if needRestart {
a.xrayService.SetToNeedRestart()
}
@@ -253,7 +251,7 @@ func (a *InboundController) resetAllTraffics(c *gin.Context) {
} else {
a.xrayService.SetToNeedRestart()
}
- jsonMsg(c, "All traffics reseted", nil)
+ jsonMsg(c, "all traffic has been reset", nil)
}
func (a *InboundController) resetAllClientTraffics(c *gin.Context) {
@@ -270,7 +268,7 @@ func (a *InboundController) resetAllClientTraffics(c *gin.Context) {
} else {
a.xrayService.SetToNeedRestart()
}
- jsonMsg(c, "All traffics of client reseted", nil)
+ jsonMsg(c, "All traffic from the client has been reset.", nil)
}
func (a *InboundController) importInbound(c *gin.Context) {
@@ -313,9 +311,9 @@ func (a *InboundController) delDepletedClients(c *gin.Context) {
jsonMsg(c, "Something went wrong!", err)
return
}
- jsonMsg(c, "All delpeted clients are deleted", nil)
+ jsonMsg(c, "All depleted clients are deleted", nil)
}
func (a *InboundController) onlines(c *gin.Context) {
- jsonObj(c, a.inboundService.GetOnlineClinets(), nil)
+ jsonObj(c, a.inboundService.GetOnlineClients(), nil)
}