Hoernchen has submitted this change. ( 
https://gerrit.osmocom.org/c/pysim/+/43550?usp=email )

 (

2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
 )Change subject: osmo-smdpp: bind TLS endpoint to -H interface
......................................................................

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(-)

Approvals:
  laforge: Looks good to me, but someone else must approve
  dexter: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/osmo-smdpp.py b/osmo-smdpp.py
index 2add23f..f19d3e5 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 https://gerrit.osmocom.org/c/pysim/+/43550?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I737c2e7cfa1ca7b825bd36a4a489760918031b8b
Gerrit-Change-Number: 43550
Gerrit-PatchSet: 3
Gerrit-Owner: Hoernchen <[email protected]>
Gerrit-Reviewer: Hoernchen <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>

Reply via email to