mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 14:05:33 +00:00
use REUSEADDR option for TCPServer
(also shorten the name space specification for the V6ONLY option) git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1525 e5f2f494-b856-4b98-b285-d166d9295462
This commit is contained in:
@@ -207,8 +207,9 @@ public:
|
||||
// Set v6-only (we use a different instantiation for v4,
|
||||
// otherwise asio will bind to both v4 and v6
|
||||
if (af == AF_INET6) {
|
||||
acceptor_.set_option(boost::asio::ip::v6_only(true));
|
||||
acceptor_.set_option(ip::v6_only(true));
|
||||
}
|
||||
acceptor_.set_option(tcp::acceptor::reuse_address(true));
|
||||
acceptor_.bind(endpoint);
|
||||
acceptor_.listen();
|
||||
acceptor_.async_accept(listening_->getSocket(),
|
||||
|
Reference in New Issue
Block a user