How to restrict the interfaces on which the server listens? #1008
-
When I run How to restrict the interfaces the server listens on? I want it to listen on loopback only. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It seems like changing the |
Beta Was this translation helpful? Give feedback.
It seems like changing the
start
script inpackage.json
toblitz start -H 127.0.0.1
or runningyarn start -H 127.0.0.1
ought to work. Node itself defaults to0.0.0.0
: https://nodejs.org/api/net.html#net_server_listen_options_callback