-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issue #100: implementation for the restriction of interfaces vcontrold tries to bind to #101
Conversation
… interfaces vcontrold tries to bind to
I only tested it very lazily
(connection on external and loopback interfaces possible)
(now no connection on external interface possible, localhost only)
(this is OK-ish, as 0.0.0.0 is 0 which stands for "all interfaces").
PS: |
I'm not happy with the naming of "bind" config parameter. Any better ideas? Also: Which default? Safe/localhost only or keep-it-as-it-was/lazy/easy/all interfaces? |
What about "IP"? As a socket address consists of an IP and and port, I would call it IP and set it to "0.0.0.0". This way, we get the behavior we have now as the default, and it can easily set to e.g. "127.0.0.1" to only listen on local connections, or to e.g. "192.168.1.10" or such to provide the server in the LAN. |
Why not having a "simple" netmask and call it like this? |
"listen" sounds nice to me :-) |
On my compiler I get a warning
Why is line 504
needed? I think it can be deleted. |
Yes, you're right. |
I added the removal to #105 ... |
ATTN: this is is untested code, just for discussion of
#100