Skip to content

Commit

Permalink
fix: port from identity file
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Dec 21, 2024
1 parent 81442f2 commit 03064bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hivemind_voice_relay/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@click.option("--host", help="hivemind host", type=str, default="")
@click.option("--key", help="Access Key", type=str, default="")
@click.option("--password", help="Password for key derivation", type=str, default="")
@click.option("--port", help="HiveMind port number", type=int, default=5678)
@click.option("--port", help="HiveMind port number", type=int, required=False)
@click.option("--selfsigned", help="accept self signed certificates", is_flag=True)
@click.option("--siteid", help="location identifier for message.context", type=str, default="")
def connect(host, key, password, port, selfsigned, siteid):
Expand All @@ -24,6 +24,7 @@ def connect(host, key, password, port, selfsigned, siteid):
key = key or identity.access_key
siteid = siteid or identity.site_id or "unknown"
host = host or identity.default_master
port = port or identity.default_port or 5678

if not key or not password or not host:
raise RuntimeError("NodeIdentity not set, please pass key/password/host or "
Expand Down

0 comments on commit 03064bc

Please sign in to comment.