commit dd7f99970bde703d6755cf3aff69b8f3f71df92c
parent 656e2ff028513d62cce1685e66bc3ea06e5ced03
Author: Sheng <webmaster0115@gmail.com>
Date: Wed, 10 Oct 2018 23:56:19 +0800
Fix title by using default port
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/webssh/static/js/main.js b/webssh/static/js/main.js
@@ -406,7 +406,7 @@ jQuery(function($){
if (!hostname) {
msg = 'Need value hostname';
} else if (!port) {
- msg = '';
+ port = 22;
} else if (!username) {
msg = 'Need value username';
} else if (!hostname_tester.test(hostname)) {