Fix bug in --dynamic-host when interface has /16 IPv4 address.

This commit is contained in:
Simon Kelley committed 2022-10-13 15:02:54 +01:00
1 parent f753e7eba6
commit b87d7aa041
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -360,7 +360,7 @@ static int iface_allowed(struct iface_param *param, int if_index, char *label,
if (int_name->flags & INP4)
{
if (netmask.s_addr == 0xffff)
if (netmask.s_addr == 0xffffffff)
continue;
newaddr.s_addr = (addr->in.sin_addr.s_addr & netmask.s_addr) |