|
|
|
@ -13,6 +13,7 @@
|
|
|
|
|
#include <qt/guiutil.h>
|
|
|
|
|
#include <qt/optionsmodel.h>
|
|
|
|
|
|
|
|
|
|
#include <interface/node.h>
|
|
|
|
|
#include <validation.h> // for DEFAULT_SCRIPTCHECK_THREADS and MAX_SCRIPTCHECK_THREADS
|
|
|
|
|
#include <netbase.h>
|
|
|
|
|
#include <txdb.h> // for -dbcache defaults
|
|
|
|
@ -313,17 +314,17 @@ void OptionsDialog::updateDefaultProxyNets()
|
|
|
|
|
std::string strProxy;
|
|
|
|
|
QString strDefaultProxyGUI;
|
|
|
|
|
|
|
|
|
|
GetProxy(NET_IPV4, proxy);
|
|
|
|
|
model->node().getProxy(NET_IPV4, proxy);
|
|
|
|
|
strProxy = proxy.proxy.ToStringIP() + ":" + proxy.proxy.ToStringPort();
|
|
|
|
|
strDefaultProxyGUI = ui->proxyIp->text() + ":" + ui->proxyPort->text();
|
|
|
|
|
(strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachIPv4->setChecked(true) : ui->proxyReachIPv4->setChecked(false);
|
|
|
|
|
|
|
|
|
|
GetProxy(NET_IPV6, proxy);
|
|
|
|
|
model->node().getProxy(NET_IPV6, proxy);
|
|
|
|
|
strProxy = proxy.proxy.ToStringIP() + ":" + proxy.proxy.ToStringPort();
|
|
|
|
|
strDefaultProxyGUI = ui->proxyIp->text() + ":" + ui->proxyPort->text();
|
|
|
|
|
(strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachIPv6->setChecked(true) : ui->proxyReachIPv6->setChecked(false);
|
|
|
|
|
|
|
|
|
|
GetProxy(NET_TOR, proxy);
|
|
|
|
|
model->node().getProxy(NET_TOR, proxy);
|
|
|
|
|
strProxy = proxy.proxy.ToStringIP() + ":" + proxy.proxy.ToStringPort();
|
|
|
|
|
strDefaultProxyGUI = ui->proxyIp->text() + ":" + ui->proxyPort->text();
|
|
|
|
|
(strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachTor->setChecked(true) : ui->proxyReachTor->setChecked(false);
|
|
|
|
|