Hoernchen has uploaded this change for review.
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
---
M osmo-smdpp.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/50/43550/1
diff --git a/osmo-smdpp.py b/osmo-smdpp.py
index cf26e74..ef214a9 100755
--- a/osmo-smdpp.py
+++ b/osmo-smdpp.py
@@ -955,7 +955,7 @@
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)
To view, visit change 43550. To unsubscribe, or for help writing mail filters, visit settings.