diff --git a/server/main.c b/server/main.c index 094f2b0..6bc05e1 100644 --- a/server/main.c +++ b/server/main.c @@ -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