Skip to content

Commit

Permalink
overlord: print user-agent when blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
aitjcize committed Nov 17, 2023
1 parent d5c574d commit d995989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlord/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (auth *BasicAuth) Unauthorized(w http.ResponseWriter, r *http.Request,

if auth.failedCount[ip] >= maxFailCount {
auth.blockedIps[ip] = time.Now()
log.Printf("BasicAuth: IP %s is blocked\n", ip)
log.Printf("BasicAuth: IP %s (%s) is blocked\n", ip, r.UserAgent())
}
}

Expand Down

0 comments on commit d995989

Please sign in to comment.