Added upload mixing run script arg

master
Kevin Froman 2020-09-25 08:08:58 +00:00
parent 48f988877d
commit 366295f09c
1 changed files with 7 additions and 0 deletions

View File

@ -82,6 +82,9 @@ parser.add_argument(
parser.add_argument( parser.add_argument(
'--keep-log-on-exit', help='Onionr can keep or delete its log file on exit', '--keep-log-on-exit', help='Onionr can keep or delete its log file on exit',
type=int, default=0) 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() args = parser.parse_args()
p = Popen([sub_script, 'version'], stdout=DEVNULL) p = Popen([sub_script, 'version'], stdout=DEVNULL)
@ -114,6 +117,10 @@ if args.keep_log_on_exit:
config['log']['file']['remove_on_exit'] = True config['log']['file']['remove_on_exit'] = True
else: else:
config['log']['file']['remove_on_exit'] = False 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']['display_header'] = False
config['general']['security_level'] = args.security_level config['general']['security_level'] = args.security_level