mirror of
https://github.com/boostorg/beast.git
synced 2026-05-04 11:44:27 +02:00
@@ -419,6 +419,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