net: Replace libnatpmp with built-in NATPMP+PCP implementation in mapport

This commit is contained in:
laanwj
2024-05-05 16:20:45 +02:00
parent 97c97177cd
commit 52f8ef66c6
6 changed files with 103 additions and 135 deletions

View File

@@ -181,7 +181,7 @@ public:
});
args().WriteSettingsFile();
}
void mapPort(bool use_upnp, bool use_natpmp) override { StartMapPort(use_upnp, use_natpmp); }
void mapPort(bool use_upnp, bool use_pcp) override { StartMapPort(use_upnp, use_pcp); }
bool getProxy(Network net, Proxy& proxy_info) override { return GetProxy(net, proxy_info); }
size_t getNodeCount(ConnectionDirection flags) override
{