Release redbean v3.0.0

This commit is contained in:
Justine Tunney 2024-08-17 06:45:35 -07:00
parent eb6e96f036
commit ca2c30c977
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
5 changed files with 36 additions and 40 deletions

View file

@ -892,9 +892,7 @@ void *HttpWorker(void *arg) {
// get client address from frontend
if (HasHeader(kHttpXForwardedFor)) {
if (!IsLoopbackIp(clientip) && //
!IsPrivateIp(clientip) && //
!IsCloudflareIp(clientip)) {
if (!IsLoopbackIp(clientip) && !IsPrivateIp(clientip)) {
LOG("Got X-Forwarded-For from untrusted IPv4 client address "
"%hhu.%hhu.%hhu.%hhu\n",
clientip >> 24, clientip >> 16, clientip >> 8, clientip);