Added upload mixing run script arg

This commit is contained in:
Kevin Froman 2020-09-25 08:08:58 +00:00
parent 48f988877d
commit 366295f09c

View File

@ -82,6 +82,9 @@ parser.add_argument(
parser.add_argument(
'--keep-log-on-exit', help='Onionr can keep or delete its log file on exit',
type=int, default=0)
parser.add_argument(
'--use-upload-mixing', help='Re-upload blocks uploaded to us. Slow but more secure',
type=int, default=0)
args = parser.parse_args()
p = Popen([sub_script, 'version'], stdout=DEVNULL)
@ -114,6 +117,10 @@ if args.keep_log_on_exit:
config['log']['file']['remove_on_exit'] = True
else:
config['log']['file']['remove_on_exit'] = False
config['general']['upload_mixing'] = False
if args.use_upload_mixing:
config['general']['upload_mixing'] = True
config['general']['display_header'] = False
config['general']['security_level'] = args.security_level