Commit 104fac79 authored by ibuler's avatar ibuler

[Update] 支持telnet

parent a80a1b92
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
"lodash": "^4.17.10", "lodash": "^4.17.10",
"material-design-icons": "^3.0.1", "material-design-icons": "^3.0.1",
"materialize-css": "^0.100.2", "materialize-css": "^0.100.2",
"metismenu": "^2.7.7", "metismenu": "^2.7.9",
"mstsc.js": "^0.2.4", "mstsc.js": "^0.2.4",
"ng2-charts": "^1.5.0", "ng2-charts": "^1.5.0",
"ngx-bootstrap": "^1.6.6", "ngx-bootstrap": "^1.6.6",
...@@ -80,7 +80,6 @@ ...@@ -80,7 +80,6 @@
"@angular/language-service": "5.2.0", "@angular/language-service": "5.2.0",
"@types/jasmine": "2.8.4", "@types/jasmine": "2.8.4",
"@types/jasminewd2": "~2.0.2", "@types/jasminewd2": "~2.0.2",
"@types/xterm": "^3.0.0",
"codelyzer": "4.0.2", "codelyzer": "4.0.2",
"jasmine-core": "2.8.0", "jasmine-core": "2.8.0",
"jasmine-spec-reporter": "4.2.1", "jasmine-spec-reporter": "4.2.1",
......
...@@ -163,7 +163,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges { ...@@ -163,7 +163,7 @@ export class ElementAssetTreeComponent implements OnInit, OnChanges {
NavList.List[id].closed = false; NavList.List[id].closed = false;
NavList.List[id].host = host; NavList.List[id].host = host;
NavList.List[id].user = user; NavList.List[id].user = user;
if (user.protocol === 'ssh') { if (user.protocol === 'ssh' || user.protocol === 'telnet') {
NavList.List[id].type = 'ssh'; NavList.List[id].type = 'ssh';
} else if (user.protocol === 'rdp') { } else if (user.protocol === 'rdp') {
NavList.List[id].type = 'rdp'; NavList.List[id].type = 'rdp';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment