key-networks / ztncui

ZeroTier network controller UI
GNU General Public License v3.0
1.53k stars 228 forks source link

Enable HTTP_HOST, clean up HTTPS when not enabled #48

Closed jacobmyers-codeninja closed 3 years ago

jacobmyers-codeninja commented 3 years ago

Allow specifying an interface to bind to for HTTP. This enables using it within a multi-home setup where it should listen on an internal interface, but not an external interface for security.

Clean up the HTTPS server starting code, if no HTTPS_PORT is given do not start the HTTPS server. This also prevents needing a TLS cert if no HTTPS server is to be run.