diff options
author | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2022-04-21 09:17:51 +0300 |
---|---|---|
committer | Jiaqing Zhao <jiaqing.zhao@intel.com> | 2022-05-11 07:22:19 +0300 |
commit | e4c78cf3807ac108ac73617ecde552e83326cd86 (patch) | |
tree | 94987e1cffcabf36b16be8b763e0a853ef3e94ed /src/store/modules/SecurityAndAccess/SessionsStore.js | |
parent | fedc7344df80d87050966a4903f7aff32fddd259 (diff) | |
download | webui-vue-e4c78cf3807ac108ac73617ecde552e83326cd86.tar.xz |
Revert "Filtered the IP address to IPv4 on sessions page"
In bmcweb/41d61c8 ("Convert IPv4-mapped IPv6 ClientIP back to IPv4"),
bmcweb automatically converts IPv4 addresses to IPv4 format, workaround
in webui-vue is no longer needed.
The original patch also brings issue with displaying IPv6 addresses in
Sessions tab.
This reverts commit d902aa7b4f98b49d2a20ad8253bc15afd77e9349.
Tested:
Both IPv4 and IPv6 addresses are displayed correctly in Sessions.
Change-Id: Ib56398de51526ee72168b5bf8427278bcb6f9c17
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Diffstat (limited to 'src/store/modules/SecurityAndAccess/SessionsStore.js')
-rw-r--r-- | src/store/modules/SecurityAndAccess/SessionsStore.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/store/modules/SecurityAndAccess/SessionsStore.js b/src/store/modules/SecurityAndAccess/SessionsStore.js index 37ba9fc2..54607ab6 100644 --- a/src/store/modules/SecurityAndAccess/SessionsStore.js +++ b/src/store/modules/SecurityAndAccess/SessionsStore.js @@ -25,14 +25,10 @@ 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: filteredIPAddress, + ipAddress: sessionUri.data?.ClientOriginIPAddress, uri: sessionUri.data['@odata.id'], }; }); |