mirror of
https://github.com/fatedier/frp.git
synced 2025-07-09 07:19:54 +07:00
fix PUT /api/config without token
This commit is contained in:
@ -311,6 +311,8 @@ func (svr *Service) apiPutConfig(w http.ResponseWriter, r *http.Request) {
|
||||
newRows = append(newRows, token)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
newRows = tmpRows
|
||||
}
|
||||
content = strings.Join(newRows, "\n")
|
||||
|
||||
|
Reference in New Issue
Block a user