Fix for 943

This commit is contained in:
piotrpekala7 2020-07-22 12:47:51 +02:00
parent e228ac2654
commit 1f6f81a02e
2 changed files with 5 additions and 1 deletions

View File

@ -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") {

View File

@ -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;
}
});