loretoparisi / fasttext.js

FastText for Node.js
MIT License
192 stars 28 forks source link

listen only to localhost #12

Closed beshoo closed 6 years ago

beshoo commented 6 years ago

I think this has to be add , so not DDos Attack to the port !

loretoparisi commented 6 years ago

@beshoo you are right, I have added a host parameter to the server.listen:

$ export PORT=3000
$ export HOST=localhost
$ export MODEL=data/lid.176.ftz
$ node server.js 
model loaded
server is listening on 3000

Thanks, closing then!