mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
net: Add flags for port mapping protocols
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user