diff --git a/include/libtorrent/torrent.hpp b/include/libtorrent/torrent.hpp index b2087ef94..94782d5bc 100755 --- a/include/libtorrent/torrent.hpp +++ b/include/libtorrent/torrent.hpp @@ -176,7 +176,7 @@ namespace libtorrent torrent_status status() const; void use_interface(const char* net_interface); - address const& interface() const { return m_net_interface; } + address const& get_interface() const { return m_net_interface; } peer_connection& connect_to_peer(const address& a); void set_ratio(float ratio) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index a2ec43f43..43bd4d52f 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -2446,7 +2446,7 @@ namespace libtorrent m_queued = false; assert(m_connecting); assert(associated_torrent()); - m_socket->connect(m_remote, associated_torrent()->interface()); + m_socket->connect(m_remote, associated_torrent()->get_interface()); if (m_torrent->alerts().should_post(alert::debug)) {