shime / livedown

Live Markdown previews for your favorite editor.
MIT License
765 stars 51 forks source link

dont allow external access to the server #65

Open cfal opened 1 year ago

cfal commented 1 year ago

although localhost is hardcoded in the URI when displaying the preview, the http server listens on all interfaces and would be externally accessible when not behind a firewall. this is a security risk. this PR changes it so that the server only listens on localhost.