]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Always include socket rebinding code
authorrl1987 <rl1987@sdf.lonestar.org>
Tue, 17 Jul 2018 13:04:06 +0000 (13:04 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 12 Sep 2018 13:06:16 +0000 (09:06 -0400)
src/core/mainloop/connection.c

index aeaff3784a4a5462c7bd17644f5dc65ba329dcdd..47a93e43a3c786f9359df1b7213f2027843519a6 100644 (file)
  * 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,