Skip to content
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

Request to set address #53

Closed
vanrein opened this issue Jul 13, 2019 · 5 comments
Closed

Request to set address #53

vanrein opened this issue Jul 13, 2019 · 5 comments

Comments

@vanrein
Copy link

vanrein commented Jul 13, 2019

This looks like a really nice, small and highly usable utility. Compliments!

To my surprise, there is no way to set an IP address, is that correct? At the very least localhost would be interesting.

Also, I would appreciate IPv6 support, though in reality I would probably add an access-constraining gateway that could limit World access. I'd then run this daemon on localhost only.

Although I doubt you'll need it, here is some code similar to your socket module that I wrote elsewhere:
https://gitlab.com/arpa2/kip/blob/initial/src/socket.c
You're welcome to use (any part of) this, of course.

@3cky
Copy link
Owner

3cky commented Jul 15, 2019

You're right, there is no way to specify an IP address to bind for now, though mbusd socket-related code has support for binding to addresses different from INADDR_ANY. Add an option to bind to specified address shouldn't be a big deal, at least in IPv4 case. I'll look into it.

@vanrein
Copy link
Author

vanrein commented Jul 15, 2019 via email

3cky added a commit that referenced this issue Jul 16, 2019
3cky added a commit that referenced this issue Jul 17, 2019
@3cky
Copy link
Owner

3cky commented Jul 17, 2019

@vanrein I've added a config option 'address' and command-line option '-A' for setting up an IP address to bind. Both IPv4 and IPv6 are should be supported now, please test.

@vanrein
Copy link
Author

vanrein commented Jul 17, 2019 via email

@3cky
Copy link
Owner

3cky commented Jul 18, 2019

Great, thanks for testing! I'll close this issue, feel free to open new issue if needed.

@3cky 3cky closed this as completed Jul 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants