Add --bind-dynamic

This commit is contained in:
Simon Kelley committed 2012-06-20 11:23:38 +01:00
1 parent 4ce4f3779b
commit 54dd393f39
8 files changed
+131 -77

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ static int make_fd(int port)
/* When bind-interfaces is set, there might be more than one dnmsasq
instance binding port 67. That's OK if they serve different networks.
Need to set REUSEADDR to make this posible, or REUSEPORT on *BSD. */
if (option_bool(OPT_NOWILD))
if (option_bool(OPT_NOWILD) || option_bool(OPT_CLEVERBIND))
{
#ifdef SO_REUSEPORT
int rc = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &oneopt, sizeof(oneopt));