Skip to content

Commit

Permalink
fix: port from identity file (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl authored Dec 21, 2024
1 parent 23c3809 commit 1c216d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hivemind_voice_satellite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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 @@ -26,6 +26,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 password:
LOG.info("starting hivemind-ggwave, waiting for audio password")
Expand Down

0 comments on commit 1c216d0

Please sign in to comment.