jcoglan / restore

Simple remoteStorage server written in Node.js
293 stars 27 forks source link

Define listening address #32

Closed sqozz closed 9 years ago

sqozz commented 9 years ago

Hi all, is there a way to tell restore, that it should only listen on 127.0.0.1? I've tried "host: 127.0.0.1" in the http-part of the config but it seems, that this gets ignored.

sqozz commented 9 years ago

Okay, i figured out that restore passes the port directly to the server.listen method of node (see: https://nodejs.org/api/http.html). So i was able to create a unix-socket with a unix-path as "port" in the restore config. It whould be nice, if you caught this with a different config-option like "unix" or something like that, because "http: { port: "/tmp/restore.socket" }" is not generally intelligible ;)

jcoglan commented 9 years ago

I'm really sorry for replying so late to this, but it is fixed in b19f94a.