Closed badboy closed 7 years ago
I added support for this and prelimanary IPv6 support (at least listening) in my branch here: https://github.com/badboy/corvus/tree/with-bind-and-port
Great idea, you are welcome to submit a PR, I did it for you, please feel free to do anything about it: https://github.com/eleme/corvus/pull/121
I expected it to be more work initially and it will certainly affect users. But the PR is there now. Let's move discussion over there.
Currently corvus always listens on 0.0.0.0, making it globally reachable over the machine's interfaces. Additionally, the configuration parameter is called
bind
but sets the port corvus listens on.It would be desirable to be able to configure the interface to listen to for incoming connection (e.g. 127.0.0.1 aka localhost only). Redis also uses
bind
for the interfaces andport
for the actual port it is listening to.In addition, this would make it possible to add IPv6 support as well.