cmdeploy: deploy IPv4 relays with brackets

This commit is contained in:
missytake
2026-03-12 17:47:44 +01:00
parent f152b0fca9
commit 85223245e4
2 changed files with 6 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ def run_cmd_options(parser):
def run_cmd(args, out):
"""Deploy chatmail services on the remote server."""
ssh_host = args.ssh_host if args.ssh_host else args.config.mail_domain
ssh_host = args.ssh_host if args.ssh_host else args.config.mail_domain.strip("[").strip("]")
sshexec = get_sshexec(ssh_host)
require_iroh = args.config.enable_iroh_relay
strict_tls = args.config.tls_cert_mode == "acme"