mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 13:12:32 +00:00
Changed api for listen ip and bind.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@454 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+2
-2
@@ -47,9 +47,9 @@ Manager::initialize() {
|
||||
|
||||
CurlStack::init();
|
||||
|
||||
torrent::initialize();
|
||||
//torrent::initialize();
|
||||
|
||||
if (!torrent::listen_open(m_portFirst, m_portLast, m_listenIp))
|
||||
if (!torrent::listen_open(m_portFirst, m_portLast))
|
||||
throw std::runtime_error("Could not open port for listening.");
|
||||
|
||||
// Register log signals.
|
||||
|
||||
@@ -68,7 +68,6 @@ public:
|
||||
void stop(Download* d);
|
||||
|
||||
void set_port_range(int a, int b) { m_portFirst = a; m_portLast = b; }
|
||||
void set_listen_ip(const std::string& ip) { m_listenIp = ip; }
|
||||
|
||||
void debug_tracker() { m_debugTracker = 0; }
|
||||
|
||||
@@ -97,7 +96,6 @@ private:
|
||||
|
||||
int m_portFirst;
|
||||
int m_portLast;
|
||||
std::string m_listenIp;
|
||||
|
||||
int m_debugTracker;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user