|
|
|
@ -45,8 +45,8 @@ enum AdvSettingsRows
@@ -45,8 +45,8 @@ enum AdvSettingsRows
|
|
|
|
|
QBITTORRENT_HEADER, |
|
|
|
|
// network interface
|
|
|
|
|
NETWORK_IFACE, |
|
|
|
|
//Optional bind address
|
|
|
|
|
NETWORK_ADDRESS, |
|
|
|
|
//Optional network address
|
|
|
|
|
NETWORK_IFACE_ADDRESS, |
|
|
|
|
NETWORK_LISTEN_IPV6, |
|
|
|
|
// behavior
|
|
|
|
|
SAVE_RESUME_DATA_INTERVAL, |
|
|
|
@ -82,7 +82,7 @@ enum AdvSettingsRows
@@ -82,7 +82,7 @@ enum AdvSettingsRows
|
|
|
|
|
// tracker
|
|
|
|
|
TRACKER_EXCHANGE, |
|
|
|
|
ANNOUNCE_ALL_TRACKERS, |
|
|
|
|
ANNOUNCE_ADDRESS, |
|
|
|
|
NETWORK_ADDRESS, |
|
|
|
|
|
|
|
|
|
ROW_COUNT |
|
|
|
|
}; |
|
|
|
@ -145,18 +145,18 @@ void AdvancedSettings::saveAdvancedSettings()
@@ -145,18 +145,18 @@ void AdvancedSettings::saveAdvancedSettings()
|
|
|
|
|
} |
|
|
|
|
// Listen on IPv6 address
|
|
|
|
|
pref->setListenIPv6(cb_listen_ipv6.isChecked()); |
|
|
|
|
// Network address
|
|
|
|
|
// Interface address
|
|
|
|
|
QHostAddress ifaceAddr(txt_iface_address.text().trimmed()); |
|
|
|
|
if (ifaceAddr.isNull()) |
|
|
|
|
pref->setNetworkInterfaceAddress(""); |
|
|
|
|
else |
|
|
|
|
pref->setNetworkInterfaceAddress(ifaceAddr.toString()); |
|
|
|
|
// Network Announce address
|
|
|
|
|
QHostAddress networkAddr(txt_network_address.text().trimmed()); |
|
|
|
|
if (networkAddr.isNull()) |
|
|
|
|
pref->setNetworkAddress(""); |
|
|
|
|
else |
|
|
|
|
pref->setNetworkAddress(networkAddr.toString()); |
|
|
|
|
// Announce address
|
|
|
|
|
QHostAddress announceAddr(txt_announce_address.text().trimmed()); |
|
|
|
|
if (announceAddr.isNull()) |
|
|
|
|
pref->setAnnounceAddress(""); |
|
|
|
|
else |
|
|
|
|
pref->setAnnounceAddress(announceAddr.toString()); |
|
|
|
|
|
|
|
|
|
// Program notification
|
|
|
|
|
pref->useProgramNotification(cb_program_notifications.isChecked()); |
|
|
|
@ -283,12 +283,12 @@ void AdvancedSettings::loadAdvancedSettings()
@@ -283,12 +283,12 @@ void AdvancedSettings::loadAdvancedSettings()
|
|
|
|
|
// Listen on IPv6 address
|
|
|
|
|
cb_listen_ipv6.setChecked(pref->getListenIPv6()); |
|
|
|
|
addRow(NETWORK_LISTEN_IPV6, tr("Listen on IPv6 address (requires restart)"), &cb_listen_ipv6); |
|
|
|
|
// Network address
|
|
|
|
|
// Network interface address
|
|
|
|
|
txt_iface_address.setText(pref->getNetworkInterfaceAddress()); |
|
|
|
|
addRow(NETWORK_IFACE_ADDRESS, tr("Optional IP Address to bind to (requires restart)"), &txt_iface_address); |
|
|
|
|
// Announce address
|
|
|
|
|
txt_network_address.setText(pref->getNetworkAddress()); |
|
|
|
|
addRow(NETWORK_ADDRESS, tr("IP Address to bind to( requires restart))"), &txt_network_address); |
|
|
|
|
// Network address
|
|
|
|
|
txt_announce_address.setText(pref->getAnnounceAddress()); |
|
|
|
|
addRow(ANNOUNCE_ADDRESS, tr("IP Address to report to trackers (requires restart)"), &txt_announce_address); |
|
|
|
|
addRow(NETWORK_ADDRESS, tr("IP Address to report to trackers (requires restart)"), &txt_network_address); |
|
|
|
|
|
|
|
|
|
// Program notifications
|
|
|
|
|
cb_program_notifications.setChecked(pref->useProgramNotification()); |
|
|
|
|