summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandeepa Singh <sandeepa.singh@ibm.com>2022-02-01 16:24:33 +0300
committerDixsie Wolmers <dixsiew@gmail.com>2022-02-04 17:21:53 +0300
commitd902aa7b4f98b49d2a20ad8253bc15afd77e9349 (patch)
tree036f8684ec7c36edf7f98c45ebc783254cf65f11
parent05887b50f1d1b08468b401b357faf13f505ee75f (diff)
downloadwebui-vue-d902aa7b4f98b49d2a20ad8253bc15afd77e9349.tar.xz
Filtered the IP address to IPv4 on sessions page
The IP address on sessions page is comming IPv6. It should be shown IPv4 address. Signed-off-by: Sandeepa Singh <sandeepa.singh@ibm.com> Change-Id: I4d5d492b161c09a09f616849ad9d0e6eb32e9fd8
-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'],
};
});