We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c605e5d commit 536209cCopy full SHA for 536209c
lib/internal/Magento/Framework/HTTP/PhpEnvironment/RemoteAddress.php
@@ -63,6 +63,11 @@ public function getRemoteAddress($ipToLong = false)
63
if (!$this->remoteAddress) {
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
0 commit comments