miniupnpd: Add warning message when using IPv4 address for listening_ip with IPv6 enabled
This commit is contained in:
parent
d178b14fd3
commit
47390f48a0
|
@ -1,4 +1,7 @@
|
|||
$Id: Changelog.txt,v 1.336 2013/04/27 15:40:09 nanard Exp $
|
||||
$Id: Changelog.txt,v 1.337 2013/04/29 09:34:13 nanard Exp $
|
||||
|
||||
2013/04/29:
|
||||
Add warning message when using IPv4 address for listening_ip with IPv6 enabled
|
||||
|
||||
2013/04/27:
|
||||
Uses ifr_addr if ifr_netmask is not defined in struct ifreq
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: miniupnpd.c,v 1.174 2013/03/23 10:46:54 nanard Exp $ */
|
||||
/* $Id: miniupnpd.c,v 1.175 2013/04/29 09:34:14 nanard Exp $ */
|
||||
/* MiniUPnP project
|
||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||
* (c) 2006-2013 Thomas Bernard
|
||||
|
@ -631,6 +631,10 @@ parselanaddr(struct lan_addr_s * lan_addr, const char * str)
|
|||
fprintf(stderr, "Cannot get index for network interface %s",
|
||||
lan_addr->ifname);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr, "Warning: please specify LAN network interface by name instead of IPv4 address\n");
|
||||
}
|
||||
#endif
|
||||
return 0;
|
||||
parselan_error:
|
||||
|
|
Loading…
Reference in New Issue