Browse Source

enable the REUSE addr option for UDP sockets, too.
(trac #298)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2689 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 14 years ago
parent
commit
ebf08c9767
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bin/auth/asio_link.cc

+ 1 - 0
src/bin/auth/asio_link.cc

@@ -368,6 +368,7 @@ public:
         dns_message_(Message::PARSE),
         custom_callback_(NULL)
     {
+        socket_.set_option(socket_base::reuse_address(true));
         // Set v6-only (we use a different instantiation for v4,
         // otherwise asio will bind to both v4 and v6
         if (addr.is_v6()) {