fix: add additional validation before making remote requests (#3398)

This commit is contained in:
Gabe Kangas
2023-10-28 08:15:01 -07:00
committed by GitHub
parent 5406e3d5da
commit a6dbc37a84
5 changed files with 94 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ type ServerProfileResponse struct {
var pendingServerAuthRequests = map[string]ServerAuthRequest{}
const maxPendingRequests = 1000
const maxPendingRequests = 100
// StartServerAuth will handle the authentication for the admin user of this
// Owncast server. Initiated via a GET of the auth endpoint.