It is not an error if we did not find any IPv4 interfaces. It could
be the case we never have V4 interfaces (in a V6 system) so this is bogus. The code was recently changed to ignore loopback interfaces. If mdnsd was started too early, this means that no interfaces would be found (since interfaces down, with no addresses, or tentative are ignored). I put back the loopback interfaces yesterday to avoid this error, but this seems like the left hand not knowing what the right hand does because whoever removed the loopback interfaces from the list, did not read the 'self discovery' comment and the special code that deals with loopback in this file. Nevertheless, I think it is better to ignore the loopback interfaces in the long run, but it is ok to keep them around since the code is handling them just fine (and works both with and without them).
This commit is contained in:
parent
948a6c8e04
commit
0f33703f35
@ -977,7 +977,9 @@ mDNSlocal int SetupInterfaceList(mDNS *const m)
|
||||
assert(m != NULL);
|
||||
debugf("SetupInterfaceList");
|
||||
|
||||
#if 0
|
||||
if (intfList == NULL) err = ENOENT;
|
||||
#endif
|
||||
|
||||
#if HAVE_IPV6
|
||||
if (err == 0) /* Link the IPv6 list to the end of the IPv4 list */
|
||||
|
Loading…
Reference in New Issue
Block a user