From 29e09a457abfbbd34bcd894a455146df7169b80c Mon Sep 17 00:00:00 2001 From: arvidn Date: Fri, 2 Dec 2016 18:25:50 -0500 Subject: [PATCH] fix deprecation of use_interface --- include/libtorrent/torrent_handle.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index f4449fcf9..8a0ecd2c1 100644 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -972,8 +972,6 @@ namespace libtorrent // will return the resume data in an alert TORRENT_DEPRECATED entry write_resume_data() const; - // ================ end deprecation ============ -#endif // ``use_interface()`` sets the network interface this torrent will use // when it opens outgoing connections. By default, it uses the same @@ -982,7 +980,10 @@ namespace libtorrent // IPv4 or IPv6 address). When specifying multiple interfaces, the // torrent will round-robin which interface to use for each outgoing // connection. This is useful for clients that are multi-homed. + TORRENT_DEPRECATED void use_interface(const char* net_interface) const; + // ================ end deprecation ============ +#endif // Fills the specified ``std::vector`` with the availability for // each piece in this torrent. libtorrent does not keep track of