mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Change back to the original names for the announce address
Only allow ip's through that match the currenrly selected network interface and address
This commit is contained in:
parent
e2f43b3383
commit
c7c71d3c88
5 changed files with 38 additions and 37 deletions
|
@ -1349,12 +1349,12 @@ QString Preferences::getNetworkInterfaceName() const
|
|||
return value("Preferences/Connection/InterfaceName").toString();
|
||||
}
|
||||
|
||||
void Preferences::setNetworkAddress(const QString& iface)
|
||||
void Preferences::setNetworkInterfaceAddress(const QString& addr)
|
||||
{
|
||||
setValue("Preferences/Connection/InterfaceAddress", iface);
|
||||
setValue("Preferences/Connection/InterfaceAddress", addr);
|
||||
}
|
||||
|
||||
QString Preferences::getNetworkAddress() const
|
||||
QString Preferences::getNetworkInterfaceAddress() const
|
||||
{
|
||||
return value("Preferences/Connection/InterfaceAddress").toString();
|
||||
}
|
||||
|
@ -1374,14 +1374,14 @@ void Preferences::setListenIPv6(bool enable)
|
|||
setValue("Preferences/Connection/InterfaceListenIPv6", enable);
|
||||
}
|
||||
|
||||
QString Preferences::getAnnounceAddress() const
|
||||
QString Preferences::getNetworkAddress() const
|
||||
{
|
||||
return value("Preferences/Connection/AnnounceAddress").toString();
|
||||
return value("Preferences/Connection/InetAddress").toString();
|
||||
}
|
||||
|
||||
void Preferences::setAnnounceAddress(const QString& addr)
|
||||
void Preferences::setNetworkAddress(const QString& addr)
|
||||
{
|
||||
setValue("Preferences/Connection/AnnounceAddress", addr);
|
||||
setValue("Preferences/Connection/InetAddress", addr);
|
||||
}
|
||||
|
||||
bool Preferences::isAnonymousModeEnabled() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue