osmo-smdpp: bind TLS endpoint to -H interface

klein ignores host/port when endpoint_description is set, so -H has
no effect on the TLS listener, it binds every interface.
Append interface= to the string so -H means the same thing with and
without TLS.

Change-Id: I737c2e7cfa1ca7b825bd36a4a489760918031b8b
This commit is contained in:
Eric Wild
2026-09-23 17:51:04 +02:00
parent 1c9072541b
commit da94468c5f
+1 -1
View File
@@ -955,7 +955,7 @@ def main(argv):
with open(cert_pempath, 'wb') as pem_file:
pem_file.write(pem_cert)
SERVER_STRING = f'ssl:{args.port}:privateKey={cert_skpath}:certKey={cert_pempath}:dhParameters={dhparam_path}'
SERVER_STRING = f'ssl:{args.port}:privateKey={cert_skpath}:certKey={cert_pempath}:dhParameters={dhparam_path}:interface={args.host}'
print(SERVER_STRING)
hs.app.run(host=HOSTNAME, port=args.port, endpoint_description=SERVER_STRING)