1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/miniupnpd/improve-error-message.patch
Natanael Copa bcce51aa23 community/miniupnpd: upgrade to 2.2.2 and refactor
- remove the sed stuff
- pass configure opts instead of sed config.h
- don't leak aports' git ref into miniupnpd binary
- add missing test scripts
- refactor init.d script
- generate uuid from post-install
- improve error message when external/internal interface is missing
2021-07-15 10:32:19 +00:00

17 lines
576 B
Diff

Upstream: https://github.com/miniupnp/miniupnp/pull/554
diff --git a/miniupnpd.c b/miniupnpd.c
index c24ee3b..529da66 100644
--- a/miniupnpd.c
+++ b/miniupnpd.c
@@ -1760,6 +1760,10 @@ init(int argc, char * * argv, struct runtime_vars * v)
}
if(!ext_if_name || !lan_addrs.lh_first) {
/* bad configuration */
+ if(!ext_if_name)
+ fprintf(stderr, "Error: Option -i missing and ext_ifname is not set in config file\n");
+ if (!lan_addrs.lh_first)
+ fprintf(stderr, "Error: Option -a missing and listening_ip is not set in config file\n");
goto print_usage;
}