enable command line to assign proxy server.

master
Max 2023-10-25 11:47:13 +08:00 committed by GitHub
parent abf9794f94
commit 32e2726dee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -185,6 +185,10 @@ def get_config_dict(args):
if not args.ibonqware is None: if not args.ibonqware is None:
if len(args.ibonqware) > 0: if len(args.ibonqware) > 0:
config_dict["advanced"]["ibonqware"] = encryptMe(args.ibonqware) config_dict["advanced"]["ibonqware"] = encryptMe(args.ibonqware)
if not args.proxy_server is None:
if len(args.proxy_server) > 2:
config_dict["advanced"]["proxy_server_port"] = args.proxy_server
# special case for headless to enable away from keyboard mode. # special case for headless to enable away from keyboard mode.
@ -11806,6 +11810,10 @@ def cli():
choices=['chrome','firefox','edge','safari','brave'], choices=['chrome','firefox','edge','safari','brave'],
type=str) type=str)
parser.add_argument("--proxy_server",
help="overwrite proxy server, format: ip:port",
type=str)
args = parser.parse_args() args = parser.parse_args()
main(args) main(args)