Add http-client-ip header

This commit is contained in:
Marius Karstedt
2021-03-22 10:57:58 +01:00
parent e78040aabd
commit e77b723db3

View File

@@ -166,6 +166,10 @@ class Request
return $this->getHeader('http-cf-connecting-ip');
}
if($this->getHeader('http-client-ip') !== null){
return $this->getHeader('http-client-ip');
}
if ($this->getHeader('http-x-forwarded-for') !== null) {
return $this->getHeader('http-x-forwarded-for');
}