net: Add flags for port mapping protocols

This commit is contained in:
Hennadii Stepanov
2020-02-23 00:10:48 +02:00
parent 8b50d1b5bb
commit 4e91b1e24d
4 changed files with 37 additions and 15 deletions

View File

@@ -94,15 +94,7 @@ public:
}
}
bool shutdownRequested() override { return ShutdownRequested(); }
void mapPort(bool use_upnp) override
{
if (use_upnp) {
StartMapPort();
} else {
InterruptMapPort();
StopMapPort();
}
}
void mapPort(bool use_upnp) override { StartMapPort(use_upnp); }
bool getProxy(Network net, proxyType& proxy_info) override { return GetProxy(net, proxy_info); }
size_t getNodeCount(CConnman::NumConnections flags) override
{