mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Add port forwarding option for embedded tracker
Closes #17781. PR #17981.
This commit is contained in:
parent
c80238d66f
commit
f6735401f4
9 changed files with 54 additions and 10 deletions
|
@ -1164,6 +1164,16 @@ void Preferences::setTrackerPort(const int port)
|
|||
setValue(u"Preferences/Advanced/trackerPort"_qs, port);
|
||||
}
|
||||
|
||||
bool Preferences::isTrackerPortForwardingEnabled() const
|
||||
{
|
||||
return value(u"Preferences/Advanced/trackerPortForwarding"_qs, false);
|
||||
}
|
||||
|
||||
void Preferences::setTrackerPortForwardingEnabled(const bool enabled)
|
||||
{
|
||||
setValue(u"Preferences/Advanced/trackerPortForwarding"_qs, enabled);
|
||||
}
|
||||
|
||||
#if defined(Q_OS_WIN) || defined(Q_OS_MACOS)
|
||||
bool Preferences::isUpdateCheckEnabled() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue