We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e56ad56 + ba27146 commit a2af98aCopy full SHA for a2af98a
lib/internal/Magento/Framework/HTTP/PhpEnvironment/RemoteAddress.php
@@ -64,6 +64,11 @@ public function getRemoteAddress($ipToLong = false)
64
return false;
65
}
66
67
+ if (strpos($this->remoteAddress, ',') !== false) {
68
+ $ipList = explode(',', $this->remoteAddress);
69
+ $this->remoteAddress = trim(reset($ipList));
70
+ }
71
+
72
return $ipToLong ? ip2long($this->remoteAddress) : $this->remoteAddress;
73
74
0 commit comments