mirror of
https://github.com/boostorg/beast.git
synced 2025-07-29 12:27:44 +02:00
@ -191,6 +191,14 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
// Allow address reuse
|
||||
acceptor_.set_option(boost::asio::socket_base::reuse_address(true));
|
||||
if(ec)
|
||||
{
|
||||
fail(ec, "set_option");
|
||||
return;
|
||||
}
|
||||
|
||||
// Bind to the server address
|
||||
acceptor_.bind(endpoint, ec);
|
||||
if(ec)
|
||||
|
Reference in New Issue
Block a user