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')
-rw-r--r--web/controller/inbound.go14
-rw-r--r--web/controller/server.go2
-rw-r--r--web/controller/xray_setting.go2
3 files changed, 8 insertions, 10 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)
}
diff --git a/web/controller/server.go b/web/controller/server.go
index 0eeca71c..fc7756ba 100644
--- a/web/controller/server.go
+++ b/web/controller/server.go
@@ -105,7 +105,7 @@ func (a *ServerController) stopXrayService(c *gin.Context) {
jsonMsg(c, "", err)
return
}
- jsonMsg(c, "Xray stoped", err)
+ jsonMsg(c, "Xray stopped", err)
}
func (a *ServerController) restartXrayService(c *gin.Context) {
diff --git a/web/controller/xray_setting.go b/web/controller/xray_setting.go
index 2dddb44b..d0fe9ca3 100644
--- a/web/controller/xray_setting.go
+++ b/web/controller/xray_setting.go
@@ -81,7 +81,7 @@ func (a *XraySettingController) warp(c *gin.Context) {
resp, err = a.XraySettingService.RegWarp(skey, pkey)
case "license":
license := c.PostForm("license")
- resp, err = a.XraySettingService.SetWarpLicence(license)
+ resp, err = a.XraySettingService.SetWarpLicense(license)
}
jsonObj(c, resp, err)