mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 06:32:31 +00:00
* New code for handling options/variables which used bencode and can
redirect get/set operations. * Fixed(?) a bug in RequestList::downloading(...) that could cause a segfault when pieces in the canceled list start downloading. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@622 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -276,6 +276,18 @@ Manager::listen_open() {
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Manager::bind(const std::string& addr) {
|
||||
if (torrent::listen_port() != 0) {
|
||||
torrent::listen_close();
|
||||
torrent::set_bind_address(addr);
|
||||
listen_open();
|
||||
|
||||
} else {
|
||||
torrent::set_bind_address(addr);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
Manager::initialize_bencode(Download* d) {
|
||||
torrent::Bencode& bencode = d->get_bencode();
|
||||
|
||||
Reference in New Issue
Block a user