We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b977b0 commit b96bbcdCopy full SHA for b96bbcd
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