Commit fdcf1718 by Sheng

Set default port to 22

parent 0f542ed2
...@@ -387,7 +387,11 @@ jQuery(function($){ ...@@ -387,7 +387,11 @@ jQuery(function($){
attr = attrs[i]; attr = attrs[i];
val = data.get(attr); val = data.get(attr);
if (typeof val === 'string') { if (typeof val === 'string') {
data.set(attr, val.trim()); val = val.trim();
if (attr === 'port' && val === '') {
val = 22;
}
data.set(attr, val);
} }
} }
} }
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
</div> </div>
<div class="col"> <div class="col">
<label for="Port">Port</label> <label for="Port">Port</label>
<input class="form-control" type="number" id="port" name="port" value="" min=1 max=65535 required> <input class="form-control" type="number" id="port" name="port" placeholder="22" value="" min=1 max=65535>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
......
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