Merge pull request #3429

1f904d4 RemoteNodeEdit: fix getAddress() and isValid() inconsistency (xiphon)
This commit is contained in:
luigi1111 2021-04-24 16:16:33 -04:00
commit 1ea38be404
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -73,13 +73,12 @@ GridLayout {
}
function getAddress() {
if (!isValid()) {
return "";
}
var addr = daemonAddr.text.trim();
var port = daemonPort.text.trim();
// validation
if(addr === "" || addr.length < 2) return "";
if(!Utils.isNumeric(port)) return "";
return addr + ":" + port;
}