Commit ebf08c97 authored by JINMEI Tatuya's avatar JINMEI Tatuya

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
parent 139e4d31
......@@ -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()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment