mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Add allow_multiple_connections_per_ip knob. Closes #5884.
This commit is contained in:
committed by
sledgehammer999
parent
f8dfe1ea57
commit
d3b4c7bec4
@@ -84,6 +84,7 @@ enum AdvSettingsRows
|
||||
OUTGOING_PORT_MIN,
|
||||
OUTGOING_PORT_MAX,
|
||||
UTP_MIX_MODE,
|
||||
MULTI_CONNECTIONS_PER_IP,
|
||||
// embedded tracker
|
||||
TRACKER_STATUS,
|
||||
TRACKER_PORT,
|
||||
@@ -138,6 +139,8 @@ void AdvancedSettings::saveAdvancedSettings()
|
||||
session->setOutgoingPortsMax(outgoing_ports_max.value());
|
||||
// uTP-TCP mixed mode
|
||||
session->setUtpMixedMode(comboUtpMixedMode.currentIndex());
|
||||
// multiple connections per IP
|
||||
session->setMultiConnectionsPerIpEnabled(cbMultiConnectionsPerIp.isChecked());
|
||||
// Recheck torrents on completion
|
||||
pref->recheckTorrentsOnCompletion(cb_recheck_completed.isChecked());
|
||||
// Transfer list refresh interval
|
||||
@@ -307,6 +310,9 @@ void AdvancedSettings::loadAdvancedSettings()
|
||||
comboUtpMixedMode.addItems({"Prefer TCP", "Peer proportional (throttles TCP)"});
|
||||
comboUtpMixedMode.setCurrentIndex(session->utpMixedMode());
|
||||
addRow(UTP_MIX_MODE, tr("uTP-TCP mixed mode algorithm"), &comboUtpMixedMode);
|
||||
// multiple connections per IP
|
||||
cbMultiConnectionsPerIp.setChecked(session->multiConnectionsPerIpEnabled());
|
||||
addRow(MULTI_CONNECTIONS_PER_IP, tr("Allow multiple connections from the same IP address"), &cbMultiConnectionsPerIp);
|
||||
// Recheck completed torrents
|
||||
cb_recheck_completed.setChecked(pref->recheckTorrentsOnCompletion());
|
||||
addRow(RECHECK_COMPLETED, tr("Recheck torrents on completion"), &cb_recheck_completed);
|
||||
|
||||
@@ -78,7 +78,7 @@ private:
|
||||
QSpinBox spin_cache, spin_save_resume_data_interval, outgoing_ports_min, outgoing_ports_max, spin_list_refresh, spin_maxhalfopen, spin_tracker_port, spin_cache_ttl;
|
||||
QCheckBox cb_os_cache, cb_recheck_completed, cb_resolve_countries, cb_resolve_hosts, cb_super_seeding,
|
||||
cb_program_notifications, cb_torrent_added_notifications, cb_tracker_favicon, cb_tracker_status,
|
||||
cb_confirm_torrent_recheck, cb_confirm_remove_all_tags, cb_listen_ipv6, cb_announce_all_trackers, cbGuidedReadCache;
|
||||
cb_confirm_torrent_recheck, cb_confirm_remove_all_tags, cb_listen_ipv6, cb_announce_all_trackers, cbGuidedReadCache, cbMultiConnectionsPerIp;
|
||||
QComboBox combo_iface, combo_iface_address, comboUtpMixedMode;
|
||||
QLineEdit txtAnnounceIP;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user