Allow binding to a listen address that doesn't exist yet
This commit is contained in:
parent
dbee3dc6cc
commit
41be05b97e
|
@ -1000,6 +1000,13 @@ socksetup(int af)
|
|||
#endif
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifdef IP_FREEBIND
|
||||
if (setsockopt(*s, SOL_IP, IP_FREEBIND, &on, sizeof(on)) < 0)
|
||||
{
|
||||
g_warning("gkrellmd: setsockopt (IP_FREEBIND) failed\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef IPV6_V6ONLY
|
||||
|
|
Loading…
Reference in New Issue