Merge pull request #701 from Self-Hosting-Group/miniupnpc_exit_with_1_if_no_upnp_devices_found_with_upnp-listdevices

miniupnpc: Exit with 1 if no UPnP devices found with upnp-listdevices
This commit is contained in:
Thomas BERNARD 2024-01-22 01:18:19 +01:00 committed by GitHub
commit 3195ca7a71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ int main(int argc, char * * argv)
free_device(dev_array);
}
} else {
printf("no device found.\n");
fprintf(stderr,"No UPnP devices found\n");
return 1;
}
return 0;