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 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

This comment has been minimized.

Copy link
Contributor

@karlp karlp commented Dec 13, 2019

Can you share your actual config snippets please?

@karlp

This comment has been minimized.

Copy link
Contributor

@karlp 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

This comment has been minimized.

Copy link
Author

@nihilus 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

This comment has been minimized.

Copy link
Contributor

@ralight 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

This comment has been minimized.

Copy link
Contributor

@ralight 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
@ralight ralight closed this in ed5db1b Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.