mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-22 08:30:09 +00:00
Fix for 943
This commit is contained in:
@ -29,6 +29,10 @@ export class ConsoleDeviceActionBrowserComponent {
|
|||||||
if (this.node.status !== "started") {
|
if (this.node.status !== "started") {
|
||||||
this.toasterService.error("This node must be started before a console can be opened");
|
this.toasterService.error("This node must be started before a console can be opened");
|
||||||
} else {
|
} 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") {
|
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}`);
|
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") {
|
} else if (this.node.console_type === "vnc") {
|
||||||
|
@ -57,7 +57,7 @@ export class TopologySummaryComponent implements OnInit, OnDestroy {
|
|||||||
this.nodesDataSource.changes.subscribe((nodes: Node[]) => {
|
this.nodesDataSource.changes.subscribe((nodes: Node[]) => {
|
||||||
this.nodes = nodes;
|
this.nodes = nodes;
|
||||||
this.nodes.forEach(n => {
|
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;
|
n.console_host = this.server.host;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user