fix : properly call find_ipv6_addr() with the 1st LAN interface
This commit is contained in:
parent
3c18a3ef02
commit
4afc6fcf7f
|
@ -1919,7 +1919,8 @@ main(int argc, char * * argv)
|
|||
#endif /* V6SOCKETS_ARE_V6ONLY */
|
||||
#endif /* ENABLE_HTTPS */
|
||||
#ifdef ENABLE_IPV6
|
||||
if(find_ipv6_addr(NULL, ipv6_addr_for_http_with_brackets, sizeof(ipv6_addr_for_http_with_brackets)) > 0) {
|
||||
if(find_ipv6_addr(lan_addrs.lh_first ? lan_addrs.lh_first->ifname : NULL,
|
||||
ipv6_addr_for_http_with_brackets, sizeof(ipv6_addr_for_http_with_brackets)) > 0) {
|
||||
syslog(LOG_NOTICE, "HTTP IPv6 address given to control points : %s",
|
||||
ipv6_addr_for_http_with_brackets);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue