Merge pull request #2137 from imachug/patch-1

Fix preferring CLI argument over zeronet.conf
This commit is contained in:
ZeroNet 2019-08-11 14:51:23 +02:00 committed by GitHub
commit 7742f2f5fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -420,7 +420,7 @@ class Config(object):
key = section + "_" + key
if key == "open_browser": # Prefer config file value over cli argument
if "--%s" % key in argv:
while "--%s" % key in argv:
pos = argv.index("--open_browser")
del argv[pos:pos + 2]