我想让 feathersjs 监听 127.0.0.1(而不是 0.0.0.0)
I want to make feathersjs listening on 127.0.0.1 (not on 0.0.0.0)
我希望我的 feathersjs 服务器只监听本地地址 127.0.0.1。
我尝试编辑 configuration/default.json 并将主机更改为“localhost”和“127.0.0.1”
{
"host": "localhost",
"port": 3030,
"public": "../public/",
"paginate": {
"default": 10,
"max": 50
},
虽然羽毛启动消息变化如下:
info: Feathers application started on http://127.0.0.1:3030
没有成功,服务器仍在侦听 0.0.0.0:3030
tcp6 0 0 :::3030 :::* LISTEN
请帮忙
const server = app.listen(port);
到[app.listen(port[, host[, backlog]]][, callback])
const server = app.listen(port, host);
我希望我的 feathersjs 服务器只监听本地地址 127.0.0.1。 我尝试编辑 configuration/default.json 并将主机更改为“localhost”和“127.0.0.1”
{
"host": "localhost",
"port": 3030,
"public": "../public/",
"paginate": {
"default": 10,
"max": 50
},
虽然羽毛启动消息变化如下:
info: Feathers application started on http://127.0.0.1:3030
没有成功,服务器仍在侦听 0.0.0.0:3030
tcp6 0 0 :::3030 :::* LISTEN
请帮忙
const server = app.listen(port);
到[app.listen(port[, host[, backlog]]][, callback])
const server = app.listen(port, host);