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

bind_interface option not working when having additional listeners. #1533

Closed
nihilus opened this issue Dec 13, 2019 · 5 comments
Closed

bind_interface option not working when having additional listeners. #1533

nihilus opened this issue Dec 13, 2019 · 5 comments
Milestone

Comments

@nihilus
Copy link

nihilus commented Dec 13, 2019

Have 2 instance of bind_interface and only the latter is in effect:

Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: mosquitto version 1.6.8 starting
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Config loaded from /etc/mosquitto.conf.
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Opening ipv6 listen socket on port 8883.
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Warning: Address family not supported by protocol
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Opening ipv4 listen socket on port 8883.
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Binding listener to interface "br0".
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Opening ipv6 listen socket on port 1883.
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Warning: Address family not supported by protocol
Dec 13 14:45:39 daemon.notice mosquitto: 1576244739: Opening ipv4 listen socket on port 1883.

@karlp
Copy link
Contributor

karlp commented Dec 13, 2019

Can you share your actual config snippets please?

@karlp
Copy link
Contributor

karlp commented Dec 13, 2019

(by my reading of the manual, you canonly have bind_interface on the default listener, additional listeners have bind paramters as optional ags to the listener directive)

@nihilus
Copy link
Author

nihilus commented Dec 16, 2019

The thing is that it worked on the contrary way. The default listener using the port directive didn't bind. Using the listener directive for it solved the issue.

@ralight
Copy link
Contributor

ralight commented Dec 16, 2019

bind_interface works with the non-default listeners. That's not clear from the documentation.

Could you share the problem configuration?

@ralight
Copy link
Contributor

ralight commented Jan 30, 2020

I think this should be fixed now.

@ralight ralight added this to the 1.6.9 milestone Jan 30, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants