mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
- 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
17 lines
576 B
Diff
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;
|
|
}
|
|
|