Updated Management validation checks

This commit is contained in:
bergware
2021-07-15 04:18:13 +02:00
parent 5f3ee8e61b
commit 5f7a07ab49

View File

@@ -116,7 +116,8 @@ function checkPorts(form,provision) {
if (provision) {
var userPort = current;
} else {
var userPort = parseInt(item.val()||check['default']).toString();
item.val(parseInt(item.val());
var userPort = (item.val()||check['default']).toString();
if (userPort < 1 || userPort > 65535) range.push(userPort+' ('+check['name']+')');
}
duplicates.push(userPort);