|
@@ -175,7 +175,7 @@ func (a *InboundController) addInboundClient(c *gin.Context) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
jsonMsg(c, "Client(s) added", nil)
|
|
jsonMsg(c, "Client(s) added", nil)
|
|
- if err == nil && needRestart {
|
|
|
|
|
|
+ if needRestart {
|
|
a.xrayService.SetToNeedRestart()
|
|
a.xrayService.SetToNeedRestart()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -196,7 +196,7 @@ func (a *InboundController) delInboundClient(c *gin.Context) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
jsonMsg(c, "Client deleted", nil)
|
|
jsonMsg(c, "Client deleted", nil)
|
|
- if err == nil && needRestart {
|
|
|
|
|
|
+ if needRestart {
|
|
a.xrayService.SetToNeedRestart()
|
|
a.xrayService.SetToNeedRestart()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -219,7 +219,7 @@ func (a *InboundController) updateInboundClient(c *gin.Context) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
jsonMsg(c, "Client updated", nil)
|
|
jsonMsg(c, "Client updated", nil)
|
|
- if err == nil && needRestart {
|
|
|
|
|
|
+ if needRestart {
|
|
a.xrayService.SetToNeedRestart()
|
|
a.xrayService.SetToNeedRestart()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -240,7 +240,7 @@ func (a *InboundController) resetClientTraffic(c *gin.Context) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
jsonMsg(c, "traffic reseted", nil)
|
|
jsonMsg(c, "traffic reseted", nil)
|
|
- if err == nil && needRestart {
|
|
|
|
|
|
+ if needRestart {
|
|
a.xrayService.SetToNeedRestart()
|
|
a.xrayService.SetToNeedRestart()
|
|
}
|
|
}
|
|
}
|
|
}
|