|
13 | 13 | #include <qt/guiutil.h>
|
14 | 14 | #include <qt/optionsmodel.h>
|
15 | 15 |
|
| 16 | +#include <interface/node.h> |
16 | 17 | #include <validation.h> // for DEFAULT_SCRIPTCHECK_THREADS and MAX_SCRIPTCHECK_THREADS
|
17 | 18 | #include <netbase.h>
|
18 | 19 | #include <txdb.h> // for -dbcache defaults
|
@@ -313,17 +314,17 @@ void OptionsDialog::updateDefaultProxyNets()
|
313 | 314 | std::string strProxy;
|
314 | 315 | QString strDefaultProxyGUI;
|
315 | 316 |
|
316 |
| - GetProxy(NET_IPV4, proxy); |
| 317 | + model->node().getProxy(NET_IPV4, proxy); |
317 | 318 | strProxy = proxy.proxy.ToStringIP() + ":" + proxy.proxy.ToStringPort();
|
318 | 319 | strDefaultProxyGUI = ui->proxyIp->text() + ":" + ui->proxyPort->text();
|
319 | 320 | (strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachIPv4->setChecked(true) : ui->proxyReachIPv4->setChecked(false);
|
320 | 321 |
|
321 |
| - GetProxy(NET_IPV6, proxy); |
| 322 | + model->node().getProxy(NET_IPV6, proxy); |
322 | 323 | strProxy = proxy.proxy.ToStringIP() + ":" + proxy.proxy.ToStringPort();
|
323 | 324 | strDefaultProxyGUI = ui->proxyIp->text() + ":" + ui->proxyPort->text();
|
324 | 325 | (strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachIPv6->setChecked(true) : ui->proxyReachIPv6->setChecked(false);
|
325 | 326 |
|
326 |
| - GetProxy(NET_TOR, proxy); |
| 327 | + model->node().getProxy(NET_TOR, proxy); |
327 | 328 | strProxy = proxy.proxy.ToStringIP() + ":" + proxy.proxy.ToStringPort();
|
328 | 329 | strDefaultProxyGUI = ui->proxyIp->text() + ":" + ui->proxyPort->text();
|
329 | 330 | (strProxy == strDefaultProxyGUI.toStdString()) ? ui->proxyReachTor->setChecked(true) : ui->proxyReachTor->setChecked(false);
|
|
0 commit comments