mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-22 00:52:32 +03:00
rm erroneous configure upnp change
This commit is contained in:
parent
f3ba186631
commit
8ef8ab2b67
@ -40,7 +40,6 @@ def make_parser(parser: ArgumentParser):
|
||||
help="Enable or disable uPnP. Can be True or False",
|
||||
type=str,
|
||||
nargs="?",
|
||||
default="True",
|
||||
)
|
||||
|
||||
parser.set_defaults(function=configure)
|
||||
@ -97,7 +96,7 @@ def configure(args, parser):
|
||||
config["logging"]["log_level"] = args.set_log_level
|
||||
print("Logging level updated. Check CHIA_ROOT/log/debug.log")
|
||||
change_made = True
|
||||
if args.enable_upnp:
|
||||
if args.enable_upnp is not None:
|
||||
config["full_node"]["enable_upnp"] = str2bool(args.enable_upnp)
|
||||
if str2bool(args.enable_upnp):
|
||||
print("uPnP enabled.")
|
||||
|
Loading…
Reference in New Issue
Block a user