X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=jbsockets.c;h=16b2a90183f55649377ee46a6ae61d45c4026fe8;hp=625d830e196cfb4d30746e34d514d7fb36ac4193;hb=569169302716381d4183f7db45558d24dfc31405;hpb=f105bf576b458a28a3919b0416fb6234e78ee9ef diff --git a/jbsockets.c b/jbsockets.c index 625d830e..16b2a901 100644 --- a/jbsockets.c +++ b/jbsockets.c @@ -8,7 +8,7 @@ * on many platforms. * * Copyright : Written by and Copyright (C) 2001-2017 the - * Privoxy team. http://www.privoxy.org/ + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -1068,6 +1068,10 @@ int bind_port(const char *hostnam, int portnum, int backlog, jb_socket *pfd) setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *)&one, sizeof(one)); #endif /* ndef _WIN32 */ +#ifdef IP_FREEBIND + setsockopt(fd, IPPROTO_IP, IP_FREEBIND, (char *)&one, sizeof(one)); +#endif + #ifdef HAVE_RFC2553 if (bind(fd, rp->ai_addr, rp->ai_addrlen) < 0) #else