Changeset View
Changeset View
Standalone View
Standalone View
src/node/interfaces.cpp
| Show First 20 Lines • Show All 162 Lines • ▼ Show 20 Lines | public: | ||||
| } | } | ||||
| void resetSettings() override { | void resetSettings() override { | ||||
| gArgs.WriteSettingsFile(/*errors=*/nullptr, /*backup=*/true); | gArgs.WriteSettingsFile(/*errors=*/nullptr, /*backup=*/true); | ||||
| gArgs.LockSettings([&](util::Settings &settings) { | gArgs.LockSettings([&](util::Settings &settings) { | ||||
| settings.rw_settings.clear(); | settings.rw_settings.clear(); | ||||
| }); | }); | ||||
| gArgs.WriteSettingsFile(); | gArgs.WriteSettingsFile(); | ||||
| } | } | ||||
| void mapPort(bool use_upnp, bool use_natpmp) override { | void mapPort(bool use_upnp, bool use_pcp) override { | ||||
| StartMapPort(use_upnp, use_natpmp); | StartMapPort(use_upnp, use_pcp); | ||||
| } | } | ||||
| bool getProxy(Network net, Proxy &proxy_info) override { | bool getProxy(Network net, Proxy &proxy_info) override { | ||||
| return GetProxy(net, proxy_info); | return GetProxy(net, proxy_info); | ||||
| } | } | ||||
| size_t getNodeCount(ConnectionDirection flags) override { | size_t getNodeCount(ConnectionDirection flags) override { | ||||
| return m_context->connman ? m_context->connman->GetNodeCount(flags) | return m_context->connman ? m_context->connman->GetNodeCount(flags) | ||||
| : 0; | : 0; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 657 Lines • Show Last 20 Lines | |||||