File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,9 @@ def __gen_client(args):
293293 builder = ClientBuilder (args .netloc )
294294 builder .set_os (args .os )
295295 builder .set_call_authentication (args .username , args .password )
296- if not any ([args .root_certificates , args .private_key , args .certificate_chain ]):
296+ if args .insecure :
297+ builder ._set_insecure ()
298+ elif not any ([args .root_certificates , args .private_key , args .certificate_chain ]):
297299 builder .set_secure_from_target ()
298300 else :
299301 builder .set_secure_from_file (
@@ -339,6 +341,7 @@ def __common_args_handler(parser):
339341 action = "store_true" ,
340342 )
341343 parser .add_argument ("-debug" , help = "Print debug messages." , action = "store_true" )
344+ parser .add_argument ("-insecure" , help = argparse .SUPPRESS , action = "store_true" )
342345 args = parser .parse_args (sys .argv [2 :])
343346 logging .basicConfig (level = logging .DEBUG if args .debug else logging .INFO )
344347 args .username = input ("Username: " )
You can’t perform that action at this time.
0 commit comments