Browse Source

Merge pull request #1070 from vmon/f--port-0-for-TCPAcceptor

the change allows when an TCPIPAcceptor is constructed by setting por…
pull/1076/head
orignal 7 years ago committed by GitHub
parent
commit
be16545063
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      libi2pd_client/I2PService.cpp

2
libi2pd_client/I2PService.cpp

@ -280,6 +280,8 @@ namespace client @@ -280,6 +280,8 @@ namespace client
void TCPIPAcceptor::Start ()
{
m_Acceptor.reset (new boost::asio::ip::tcp::acceptor (GetService (), m_LocalEndpoint));
//update the local end point in case port has been set zero and got updated now
m_LocalEndpoint = m_Acceptor->local_endpoint();
m_Acceptor->listen ();
Accept ();
}

Loading…
Cancel
Save