refactor: Return std::optional from GetProxy

This commit is contained in:
MarcoFalke
2026-02-05 16:35:14 +01:00
parent faeac1a931
commit fa270fdacf
8 changed files with 45 additions and 44 deletions

View File

@@ -187,7 +187,7 @@ public:
args().WriteSettingsFile();
}
void mapPort(bool enable) override { StartMapPort(enable); }
bool getProxy(Network net, Proxy& proxy_info) override { return GetProxy(net, proxy_info); }
std::optional<Proxy> getProxy(Network net) override { return GetProxy(net); }
size_t getNodeCount(ConnectionDirection flags) override
{
return m_context->connman ? m_context->connman->GetNodeCount(flags) : 0;