Set default port to 22

pull/30/head
Sheng 6 years ago
parent 0f542ed24f
commit fdcf1718c1

@ -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);
}
}
}

@ -36,7 +36,7 @@
</div>
<div class="col">
<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 class="row">

Loading…
Cancel
Save