Set default port to 22

This commit is contained in:
Sheng
2018-09-29 20:19:45 +08:00
parent 0f542ed24f
commit fdcf1718c1
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -387,7 +387,11 @@ jQuery(function($){
attr = attrs[i];
val = data.get(attr);
if (typeof val === 'string') {
data.set(attr, val.trim());
val = val.trim();
if (attr === 'port' && val === '') {
val = 22;
}
data.set(attr, val);
}
}
}