fix messages and return code

This commit is contained in:
Thomas Bernard 2020-10-05 22:26:41 +02:00
parent 1a1dc0fffb
commit 845dc469d6
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF

View File

@ -709,16 +709,15 @@ int main(int argc, char ** argv)
break;
case 2:
printf("Found a (not connected?) IGD : %s\n", urls.controlURL);
printf("Trying to continue anyway\n");
if (ignore) printf("Trying to continue anyway\n");
break;
case 3:
printf("UPnP device found. Is it an IGD ? : %s\n", urls.controlURL);
printf("Trying to continue anyway\n");
if (ignore) printf("Trying to continue anyway\n");
break;
default:
printf("Found device (igd ?) : %s\n", urls.controlURL);
printf("Trying to continue anyway\n");
break;
if (ignore) printf("Trying to continue anyway\n");
}
printf("Local LAN ip address : %s\n", lanaddr);
#if 0
@ -731,7 +730,9 @@ int main(int argc, char ** argv)
}
#endif
if (ignore || i == 1) switch(command)
if (!ignore && i != 1)
retcode = 1;
else switch(command)
{
case 'l':
DisplayInfos(&urls, &data);