mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 15:12:30 +00:00
* Starting work on merging get/set variable. Moved the bool and value
variables, still might have missed some prior uses that might cause exceptions to be thrown. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@890 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+3
-3
@@ -108,7 +108,7 @@ receive_tracker_dump(const std::string& url, const char* data, size_t size) {
|
||||
|
||||
void
|
||||
Manager::handshake_log(const sockaddr* sa, int msg, int err, const torrent::HashString* hash) {
|
||||
if (!control->variable()->get_value("handshake_log"))
|
||||
if (!control->variable()->get_value("get_handshake_log"))
|
||||
return;
|
||||
|
||||
std::string peer;
|
||||
@@ -276,13 +276,13 @@ Manager::shutdown(bool force) {
|
||||
|
||||
void
|
||||
Manager::listen_open() {
|
||||
if (!control->variable()->get_value("port_open"))
|
||||
if (!control->variable()->get_value("get_port_open"))
|
||||
return;
|
||||
|
||||
if (m_portFirst > m_portLast)
|
||||
throw torrent::input_error("Invalid port range for listening");
|
||||
|
||||
if (control->variable()->get_value("port_random")) {
|
||||
if (control->variable()->get_value("get_port_random")) {
|
||||
int boundary = m_portFirst + random() % (m_portLast - m_portFirst + 1);
|
||||
|
||||
if (torrent::connection_manager()->listen_open(boundary, m_portLast) ||
|
||||
|
||||
Reference in New Issue
Block a user