Published Feb 28, 2023
RemotePortInOrder
https://github.com/magesuite/remote-port-in-order
This module adds remote port to IP in OrderData.
Installation
This module is part of MageSuite metapackage
Installation if metapackage is not used:
composer require "creativestyle/magesuite-remote-port-in-order" ^1.0.0
Admin settings
No admin setting in this module.
Backend
Backend documentation need to be added
public function aroundSetRemoteIp(\Magento\Sales\Model\Order $subject, callable $proceed, $remoteIp)
{
$remotePort = $this->request->getServer('REMOTE_PORT');
if ($remoteIp !== null && !preg_match('/(\d[\d.]+):(\d+)\b/', $remoteIp) && !empty($remotePort)) {
$remoteIp = sprintf('%s:%s', $remoteIp, $remotePort);
}
return $proceed($remoteIp);
}
Frontend
No frontend functionalities in the module.
Looking for labels? They can now be found in the details panel on the floating action bar.
Related content
Getting Started
Getting Started
Read with this
6.4. IP Allowlisting for Magento 2 API endpoints
6.4. IP Allowlisting for Magento 2 API endpoints
More like this
RestRictor (optional)
RestRictor (optional)
More like this
ClearAttributes
ClearAttributes
Read with this