diff options
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index 838ebb8..6599f5b 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -211,7 +211,8 @@ nmsInfoBox._windowTypes.switchInfo = { getTitle: function() { var sshButton = ''; try { - sshButton = nmsInfoBox._window.swm.mgmt_v4_addr; + var mgmt = nmsInfoBox._window.swm.mgmt_v4_addr; + sshButton = mgmt.split("/")[0]; } catch(e) { console.log(e); } |