diff options
-rw-r--r-- | src/store/modules/SecurityAndAccess/SessionsStore.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/store/modules/SecurityAndAccess/SessionsStore.js b/src/store/modules/SecurityAndAccess/SessionsStore.js index 54607ab6..37ba9fc2 100644 --- a/src/store/modules/SecurityAndAccess/SessionsStore.js +++ b/src/store/modules/SecurityAndAccess/SessionsStore.js @@ -25,10 +25,14 @@ const SessionsStore = { ) .then((sessionUris) => { const allConnectionsData = sessionUris.map((sessionUri) => { + //For filtering IP address to IPv4 + let filteredIPAddress = sessionUri.data?.ClientOriginIPAddress.slice( + 7 + ); return { clientID: sessionUri.data?.Oem?.OpenBMC.ClientID, username: sessionUri.data?.UserName, - ipAddress: sessionUri.data?.ClientOriginIPAddress, + ipAddress: filteredIPAddress, uri: sessionUri.data['@odata.id'], }; }); |