This commit is contained in:
Cyberes 2020-11-02 21:38:58 -07:00
parent b0f5c81dbc
commit bdcb73659d
1 changed files with 2 additions and 2 deletions

View File

@ -265,8 +265,8 @@ class SpecialContact extends UnlistedSpecialPage
// get the sender's real IP
if (!is_null($wgRequest->getHeader('CF-Connecting-IP'))) {
$senderIP = $wgRequest->getHeader('CF-Connecting-IP');
elseif (!is_null($wgRequest->getHeader('X-Forwarded-For'))) {
$senderIP = $wgRequest->getHeader('CF-Connecting-IP');
} elseif (!is_null($wgRequest->getHeader('X-Forwarded-For'))) {
$senderIP = $wgRequest->getHeader('X-Forwarded-For');
} else {
$senderIP = $request->getIP();