mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-06 03:08:31 +00:00
Release redbean v3.0.0
This commit is contained in:
parent
eb6e96f036
commit
ca2c30c977
5 changed files with 36 additions and 40 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue