mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 04:32:30 +00:00
* More rak::socket_address cleanup, made listening port seperate from
local address and use port 0 when listening port is closed. * Added "port_open" option which allows the user to not open any listening port. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@644 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -256,6 +256,9 @@ Manager::receive_download_done(Download* d) {
|
||||
|
||||
void
|
||||
Manager::listen_open() {
|
||||
if (control->variables()->get_string("port_open") != "yes")
|
||||
return;
|
||||
|
||||
if (m_portFirst > m_portLast)
|
||||
throw torrent::input_error("Invalid port range for listening");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user