mirror of
https://github.com/romanz/amodem.git
synced 2026-02-06 16:48:06 +08:00
main: fixup str/bytes issue for curve_name
This commit is contained in:
@@ -128,7 +128,7 @@ def run_agent(client_factory=client.Client):
|
||||
args = create_agent_parser().parse_args()
|
||||
setup_logging(verbosity=args.verbose)
|
||||
|
||||
with client_factory(curve=args.ecdsa_curve_name) as conn:
|
||||
with client_factory(curve=args.ecdsa_curve_name.encode('ascii')) as conn:
|
||||
label = args.identity
|
||||
command = args.command
|
||||
|
||||
@@ -156,7 +156,7 @@ def run_git(client_factory=client.Client):
|
||||
args = create_git_parser().parse_args()
|
||||
setup_logging(verbosity=args.verbose)
|
||||
|
||||
with client_factory(curve=args.ecdsa_curve_name) as conn:
|
||||
with client_factory(curve=args.ecdsa_curve_name.encode('ascii')) as conn:
|
||||
label = git_host(args.remote, ['pushurl', 'url'])
|
||||
if not label:
|
||||
log.error('Could not find "%s" SSH remote in .git/config',
|
||||
|
||||
Reference in New Issue
Block a user