forked from Mxmilu666/frp
models/server: add dashboard for frps by gin
This commit is contained in:
@@ -111,6 +111,15 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
// create dashboard web server if DashboardPort != 0
|
||||
if server.DashboardPort != 0 {
|
||||
err := server.RunDashboardServer(server.BindAddr, server.DashboardPort)
|
||||
if err != nil {
|
||||
log.Error("Create dashboard web server error, %v", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
log.Info("Start frps success")
|
||||
ProcessControlConn(l)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user