mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Set SO_REUSEADDR for JSON-RPC port
This commit is contained in:
parent
d2e2cb0d27
commit
8fd402bfcf
2
rpc.cpp
2
rpc.cpp
@ -1710,6 +1710,8 @@ void ThreadRPCServer2(void* parg)
|
||||
ip::tcp::endpoint endpoint(bindAddress, GetArg("-rpcport", 8332));
|
||||
ip::tcp::acceptor acceptor(io_service, endpoint);
|
||||
|
||||
acceptor.set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
|
||||
|
||||
#ifdef USE_SSL
|
||||
ssl::context context(io_service, ssl::context::sslv23);
|
||||
if (fUseSSL)
|
||||
|
Loading…
Reference in New Issue
Block a user