Add IP address validation

This commit is contained in:
Alex Spataru 2021-02-16 00:33:14 -05:00
parent 9f851608e0
commit a91aa73e52

View File

@ -100,7 +100,6 @@ int Network::socketTypeIndex() const
*/
bool Network::configurationOk() const
{
return true;
return port() > 0 && !QHostAddress(host()).isNull();
}