From da94468c5f7e9ef8cd4257f178db10ee7adeda51 Mon Sep 17 00:00:00 2001 From: Eric Wild Date: Wed, 23 Sep 2026 17:51:04 +0200 Subject: [PATCH] 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 --- osmo-smdpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmo-smdpp.py b/osmo-smdpp.py index 2add23f1..f19d3e5a 100755 --- a/osmo-smdpp.py +++ b/osmo-smdpp.py @@ -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)