fix import db and always restart xray
This commit is contained in:
1 parent
6602c55f3c
commit
6c087ceb1a
2 files changed
+10
-18
No files matched your search
@@ -152,6 +152,8 @@ func (a *ServerController) importDB(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
defer file.Close()
|
||||
// Always restart Xray before return
|
||||
defer a.serverService.RestartXrayService()
|
||||
// Import it
|
||||
err = a.serverService.ImportDB(file)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user