Allow binding to a listen address that doesn't exist yet

This commit is contained in:
Ville Skyttä 2014-07-12 13:36:43 +03:00 committed by Stefan Gehn
parent dbee3dc6cc
commit 41be05b97e
1 changed files with 7 additions and 0 deletions

View File

@ -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