fixed ip address validation

pull/7/head
Boernsman 2021-05-19 06:45:25 +02:00 committed by Michael Zanetti
parent 14ab5398d4
commit 47b661c2c9
1 changed files with 1 additions and 3 deletions

View File

@ -43,9 +43,7 @@ void IntegrationPluginIdm::setupThing(ThingSetupInfo *info)
if (thing->thingClassId() == navigator2ThingClassId) {
QHostAddress hostAddress = QHostAddress(thing->paramValue(navigator2ThingIpAddressParamTypeId).toString());
if (!hostAddress.isNull()) {
if (hostAddress.isNull()) {
qCWarning(dcIdm()) << "Setup failed, IP address not valid";
info->finish(Thing::ThingErrorInvalidParameter, QT_TR_NOOP("No IP address given"));
return;