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