mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-19 07:46:13 +00:00
Fix for 943
This commit is contained in:
parent
e228ac2654
commit
1f6f81a02e
@ -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") {
|
||||
|
@ -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;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user