diff --git a/src/app/components/project-map/context-menu/actions/console-device-action-browser/console-device-action-browser.component.ts b/src/app/components/project-map/context-menu/actions/console-device-action-browser/console-device-action-browser.component.ts index 62bd7420..6e541e5a 100644 --- a/src/app/components/project-map/context-menu/actions/console-device-action-browser/console-device-action-browser.component.ts +++ b/src/app/components/project-map/context-menu/actions/console-device-action-browser/console-device-action-browser.component.ts @@ -29,6 +29,10 @@ export class ConsoleDeviceActionBrowserComponent { if (this.node.status !== "started") { this.toasterService.error("This node must be started before a console can be opened"); } else { + if (this.node.console_host === '0.0.0.0' || this.node.console_host === '0:0:0:0:0:0:0:0' || this.node.console_host === '::') { + this.node.console_host = this.server.host; + } + if (this.node.console_type === "telnet") { location.assign(`gns3+telnet://${this.node.console_host}:${this.node.console}?name=${this.node.name}&project_id=${this.node.project_id}&node_id=${this.node.node_id}`); } else if (this.node.console_type === "vnc") { diff --git a/src/app/components/topology-summary/topology-summary.component.ts b/src/app/components/topology-summary/topology-summary.component.ts index 30e56875..a0f088a2 100644 --- a/src/app/components/topology-summary/topology-summary.component.ts +++ b/src/app/components/topology-summary/topology-summary.component.ts @@ -57,7 +57,7 @@ export class TopologySummaryComponent implements OnInit, OnDestroy { this.nodesDataSource.changes.subscribe((nodes: Node[]) => { this.nodes = nodes; this.nodes.forEach(n => { - if (n.console_host === '0.0.0.0') { + if (n.console_host === '0.0.0.0' || n.console_host === '0:0:0:0:0:0:0:0' || n.console_host === '::') { n.console_host = this.server.host; } });