diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-02-23 00:10:48 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-01-07 18:07:08 +0200 |
commit | 4e91b1e24d96e0cdccdd2a3ed034413f3ba6bae6 (patch) | |
tree | 01f7e01ff0f66e58d98b5f3805780f571570476c /src/node | |
parent | 8b50d1b5bb29b7d1ea0245ba75a8df3144e312dc (diff) |
net: Add flags for port mapping protocols
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/interfaces.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index ff6c9bf6b3..6b84cb0f05 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -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 { |