Fix audit as async, function name
This commit is contained in:
@ -8,7 +8,7 @@ from typing import cast
|
||||
import click
|
||||
from pydantic import ValidationError
|
||||
from .settings import ServerSettings
|
||||
from .ssh_server import start_server
|
||||
from .ssh_server import start_sshecret_sshd
|
||||
|
||||
LOG = logging.getLogger()
|
||||
|
||||
@ -51,7 +51,7 @@ def cli_run(ctx: click.Context, host: str | None, port: int | None) -> None:
|
||||
settings.port = port
|
||||
|
||||
loop = asyncio.new_event_loop()
|
||||
loop.run_until_complete(start_server(settings))
|
||||
loop.run_until_complete(start_sshecret_sshd(settings))
|
||||
title = click.style("Sshecret SSH Daemon", fg="red", bold=True)
|
||||
click.echo(f"Starting {title}: {settings.listen_address}:{settings.port}")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user