From 1fe8d21cf2fda3bb6a2435d267b41f3b68641c23 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 12 Apr 2018 10:49:53 +0200 Subject: [PATCH] fixes #272 --- miniupnpd/minissdp.c | 2 +- miniupnpd/miniupnpd.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/miniupnpd/minissdp.c b/miniupnpd/minissdp.c index 8037566..ca9dc63 100644 --- a/miniupnpd/minissdp.c +++ b/miniupnpd/minissdp.c @@ -1002,7 +1002,7 @@ ProcessSSDPData(int s, const char *bufr, int n, { if(lan_addr != NULL) { - if(lan_addr->index != (unsigned)source_if) + if(lan_addr->index != (unsigned)source_if && lan_addr->index != 0) { syslog(LOG_WARNING, "interface index not matching %u != %d", lan_addr->index, source_if); } diff --git a/miniupnpd/miniupnpd.c b/miniupnpd/miniupnpd.c index 9026654..943b868 100644 --- a/miniupnpd/miniupnpd.c +++ b/miniupnpd/miniupnpd.c @@ -996,6 +996,11 @@ parselanaddr(struct lan_addr_s * lan_addr, const char * str) str); return -1; } +#else + else + { + syslog(LOG_NOTICE, "it is advised to use network interface name instead of %s", str); + } #endif return 0; parselan_error: