MCPcopy Create free account
hub / github.com/LUX-Core/lux / getProxySettings

Method getProxySettings

src/qt/optionsmodel.cpp:542–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542bool OptionsModel::getProxySettings(QNetworkProxy& proxy) const
543{
544 // Directly query current base proxy, because
545 // GUI settings can be overridden with -proxy.
546 proxyType curProxy;
547 if (GetProxy(NET_IPV4, curProxy)) {
548 proxy.setType(QNetworkProxy::Socks5Proxy);
549 proxy.setHostName(QString::fromStdString(curProxy.ToStringIP()));
550 proxy.setPort(curProxy.GetPort());
551
552 return true;
553 } else
554 proxy.setType(QNetworkProxy::NoProxy);
555
556 return false;
557}
558
559void OptionsModel::setRestartRequired(bool fRequired)
560{

Callers 1

initNetManagerMethod · 0.80

Calls 4

GetProxyFunction · 0.85
setTypeMethod · 0.80
ToStringIPMethod · 0.80
GetPortMethod · 0.80

Tested by

no test coverage detected