From: rl1987 Date: Tue, 17 Jul 2018 13:04:06 +0000 (+0000) Subject: Always include socket rebinding code X-Git-Tag: tor-0.3.5.1-alpha~47^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8157097b42b6377d0cd83c758efce5825df83f2;p=thirdparty%2Ftor.git Always include socket rebinding code --- diff --git a/src/core/mainloop/connection.c b/src/core/mainloop/connection.c index aeaff3784a..47a93e43a3 100644 --- a/src/core/mainloop/connection.c +++ b/src/core/mainloop/connection.c @@ -146,10 +146,11 @@ * EADDRINUSE. * 2) If so, it will close the appropriate old listener connection and * 3) Attempts bind()'ing the new listener socket again. + * + * Just to be safe, we are enabling listener rebind code on all platforms, + * to account for unexpected cases where it may be needed. */ -#if defined(__linux__) || defined(_WIN32) #define ENABLE_LISTENER_REBIND -#endif static connection_t *connection_listener_new( const struct sockaddr *listensockaddr,