mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 19:22:29 +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:
@@ -80,11 +80,6 @@ apply_download_directory(core::Download* d, const std::string& arg) {
|
||||
(d->get_download().get_entry_size() > 1 ? d->get_download().get_name() : ""));
|
||||
}
|
||||
|
||||
void
|
||||
apply_download_ip(core::Download* d, const std::string& arg) {
|
||||
d->get_download().set_ip(arg);
|
||||
}
|
||||
|
||||
void
|
||||
apply_global_download_rate(ui::Control* m, int arg) {
|
||||
torrent::set(torrent::THROTTLE_READ_CONST_RATE, arg * 1024);
|
||||
@@ -97,7 +92,12 @@ apply_global_upload_rate(ui::Control* m, int arg) {
|
||||
|
||||
void
|
||||
apply_bind(ui::Control* m, const std::string& arg) {
|
||||
m->get_core().set_listen_ip(arg);
|
||||
torrent::set_bind(arg);
|
||||
}
|
||||
|
||||
void
|
||||
apply_ip(ui::Control* m, const std::string& arg) {
|
||||
torrent::set_ip(arg);
|
||||
}
|
||||
|
||||
// The arg string *must* have been checked with validate_port_range
|
||||
|
||||
Reference in New Issue
Block a user