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/init.cpp | |
parent | 8b50d1b5bb29b7d1ea0245ba75a8df3144e312dc (diff) |
net: Add flags for port mapping protocols
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index 5c24490215..8a260a3df2 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1900,9 +1900,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA Discover(); // Map ports with UPnP - if (args.GetBoolArg("-upnp", DEFAULT_UPNP)) { - StartMapPort(); - } + StartMapPort(args.GetBoolArg("-upnp", DEFAULT_UPNP)); CConnman::Options connOptions; connOptions.nLocalServices = nLocalServices; |