```
$this->headers->has(self::$trustedHeaders[self::HEADER_CLIENT_IP])
```
This just work if the X-Forward-For exists...
This is dont duplicates the original logic, it just get the client ip address from the __X-Forward-For header__ _(client, proxy1, proxy2, ...)_ instead of the hardcoded __127.0.0.1__... this was made to avoid this hardcoded IP address

It does not bypass the check... there is no check for this, once a time that the real __client IP address__ is not at the trustedProxies.