mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 23:18:40 +00:00
listen port tweak
This commit is contained in:
parent
dcf3cac453
commit
c2b9a5eaaa
1 changed files with 3 additions and 2 deletions
|
@ -667,13 +667,13 @@ namespace detail
|
||||||
{
|
{
|
||||||
// create listener socket
|
// create listener socket
|
||||||
m_listen_socket.reset(new socket_acceptor(m_io_service));
|
m_listen_socket.reset(new socket_acceptor(m_io_service));
|
||||||
m_listen_socket->set_option(socket_acceptor::reuse_address(true));
|
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
m_listen_socket->open(m_listen_interface.protocol());
|
m_listen_socket->open(m_listen_interface.protocol());
|
||||||
|
m_listen_socket->set_option(socket_acceptor::reuse_address(true));
|
||||||
m_listen_socket->bind(m_listen_interface);
|
m_listen_socket->bind(m_listen_interface);
|
||||||
m_listen_socket->listen();
|
m_listen_socket->listen();
|
||||||
m_external_listen_port = m_listen_interface.port();
|
m_external_listen_port = m_listen_interface.port();
|
||||||
|
@ -2380,3 +2380,4 @@ namespace detail
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue