diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 3fadaad4c..1eb0af257 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -2686,10 +2686,10 @@ QString Session::networkInterface() const return m_networkInterface; } -void Session::setNetworkInterface(const QString &interface) +void Session::setNetworkInterface(const QString &iface) { - if (interface != networkInterface()) { - m_networkInterface = interface; + if (iface != networkInterface()) { + m_networkInterface = iface; configureListeningInterface(); } } diff --git a/src/base/bittorrent/session.h b/src/base/bittorrent/session.h index de5d92fe4..78fb2a731 100644 --- a/src/base/bittorrent/session.h +++ b/src/base/bittorrent/session.h @@ -309,7 +309,7 @@ namespace BitTorrent bool useRandomPort() const; void setUseRandomPort(bool value); QString networkInterface() const; - void setNetworkInterface(const QString &interface); + void setNetworkInterface(const QString &iface); QString networkInterfaceName() const; void setNetworkInterfaceName(const QString &name); QString networkInterfaceAddress() const;