frpc: add status command

This commit is contained in:
fatedier
2018-01-17 01:09:33 +08:00
parent 3bb404dfb5
commit 584e098e8e
11 changed files with 722 additions and 318 deletions

View File

@ -39,6 +39,7 @@ func (svr *Service) RunAdminServer(addr string, port int64) (err error) {
// api, see dashboard_api.go
router.GET("/api/reload", frpNet.HttprouterBasicAuth(svr.apiReload, user, passwd))
router.GET("/api/status", frpNet.HttprouterBasicAuth(svr.apiStatus, user, passwd))
address := fmt.Sprintf("%s:%d", addr, port)
server := &http.Server{