@ -113,13 +113,9 @@ namespace
@@ -113,13 +113,9 @@ namespace
OUTGOING_PORT_MAX ,
UPNP_LEASE_DURATION ,
UTP_MIX_MODE ,
# ifdef HAS_IDN_SUPPORT
IDN_SUPPORT ,
# endif
MULTI_CONNECTIONS_PER_IP ,
# ifdef HAS_HTTPS_TRACKER_VALIDATION
VALIDATE_HTTPS_TRACKER_CERTIFICATE ,
# endif
BLOCK_PEERS_ON_PRIVILEGED_PORTS ,
// seeding
CHOKING_ALGORITHM ,
@ -226,16 +222,12 @@ void AdvancedSettings::saveAdvancedSettings()
@@ -226,16 +222,12 @@ void AdvancedSettings::saveAdvancedSettings()
session - > setUPnPLeaseDuration ( m_spinBoxUPnPLeaseDuration . value ( ) ) ;
// uTP-TCP mixed mode
session - > setUtpMixedMode ( static_cast < BitTorrent : : MixedModeAlgorithm > ( m_comboBoxUtpMixedMode . currentIndex ( ) ) ) ;
# ifdef HAS_IDN_SUPPORT
// Support internationalized domain name (IDN)
session - > setIDNSupportEnabled ( m_checkBoxIDNSupport . isChecked ( ) ) ;
# endif
// multiple connections per IP
session - > setMultiConnectionsPerIpEnabled ( m_checkBoxMultiConnectionsPerIp . isChecked ( ) ) ;
# ifdef HAS_HTTPS_TRACKER_VALIDATION
// Validate HTTPS tracker certificate
session - > setValidateHTTPSTrackerCertificate ( m_checkBoxValidateHTTPSTrackerCertificate . isChecked ( ) ) ;
# endif
// Disallow connection to peers on privileged ports
session - > setBlockPeersOnPrivilegedPorts ( m_checkBoxBlockPeersOnPrivilegedPorts . isChecked ( ) ) ;
// Recheck torrents on completion
@ -550,25 +542,21 @@ void AdvancedSettings::loadAdvancedSettings()
@@ -550,25 +542,21 @@ void AdvancedSettings::loadAdvancedSettings()
addRow ( UTP_MIX_MODE , ( tr ( " %1-TCP mixed mode algorithm " , " uTP-TCP mixed mode algorithm " ) . arg ( C_UTP )
+ ' ' + makeLink ( " https://www.libtorrent.org/reference-Settings.html#mixed_mode_algorithm " , " (?) " ) )
, & m_comboBoxUtpMixedMode ) ;
# ifdef HAS_IDN_SUPPORT
// Support internationalized domain name (IDN)
m_checkBoxIDNSupport . setChecked ( session - > isIDNSupportEnabled ( ) ) ;
addRow ( IDN_SUPPORT , ( tr ( " Support internationalized domain name (IDN) " )
+ ' ' + makeLink ( " https://www.libtorrent.org/reference-Settings.html#allow_idna " , " (?) " ) )
, & m_checkBoxIDNSupport ) ;
# endif
// multiple connections per IP
m_checkBoxMultiConnectionsPerIp . setChecked ( session - > multiConnectionsPerIpEnabled ( ) ) ;
addRow ( MULTI_CONNECTIONS_PER_IP , ( tr ( " Allow multiple connections from the same IP address " )
+ ' ' + makeLink ( " https://www.libtorrent.org/reference-Settings.html#allow_multiple_connections_per_ip " , " (?) " ) )
, & m_checkBoxMultiConnectionsPerIp ) ;
# ifdef HAS_HTTPS_TRACKER_VALIDATION
// Validate HTTPS tracker certificate
m_checkBoxValidateHTTPSTrackerCertificate . setChecked ( session - > validateHTTPSTrackerCertificate ( ) ) ;
addRow ( VALIDATE_HTTPS_TRACKER_CERTIFICATE , ( tr ( " Validate HTTPS tracker certificates " )
+ ' ' + makeLink ( " https://www.libtorrent.org/reference-Settings.html#validate_https_trackers " , " (?) " ) )
, & m_checkBoxValidateHTTPSTrackerCertificate ) ;
# endif
// Disallow connection to peers on privileged ports
m_checkBoxBlockPeersOnPrivilegedPorts . setChecked ( session - > blockPeersOnPrivilegedPorts ( ) ) ;
addRow ( BLOCK_PEERS_ON_PRIVILEGED_PORTS , ( tr ( " Disallow connection to peers on privileged ports " ) + ' ' + makeLink ( " https://libtorrent.org/single-page-ref.html#no_connect_privileged_ports " , " (?) " ) ) , & m_checkBoxBlockPeersOnPrivilegedPorts ) ;