summaryrefslogtreecommitdiff
path: root/src/store/modules/SecurityAndAccess/SessionsStore.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/modules/SecurityAndAccess/SessionsStore.js')
-rw-r--r--src/store/modules/SecurityAndAccess/SessionsStore.js6
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'],
};
});