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
IPv6 addresses do not work for bridging. #886
Comments
Please change the subject If you insist on reporting a bug. This place is not for a question nor for a new feature's request. Look at the instruction (https://mosquitto.org/). |
@toast-uz Please look at the bridge section of the mosquitto.conf documentation, you'll see that it does not specify that the address has to be IPv4, it simply says address and port. This means one of two things, this is a bug and it was intended to be supported with both IPv6 and IPv4 addresses, or this is intentional behavior as IPv4 addresses were the only ones intended to be supported for bridges. I'm not sure what you mean mean by changing the subject to clarify this is a bug, as there is not official guide line or structure for issue reporting. The nature of this ticket is ambiguous as the documentation is ambiguous. I changed the title to hopefully be a little clearer as to what I am reporting in this issue. |
@toast-uz this is definitely a bug, not a feature request. You need to read the bugs a little more sometimes. |
https://mosquitto.org/ show you:
I guess reporting bugs are at this issue list, and submitting changes are at PRs. |
Essentially, the issue list is for the users search known bugs. But I guess mosquitto's community is too flexible to realize the original purpose. There are over 200 issues! Therefore, I am asking the not a bug reporters to close the issue and post at mosquitto-dev ML. If your real insist is reporting a critical bug on the document, keep your issue. If not, your real insist is a new request for supporting IPv6 bridge, I am asking to close this issue and post at mosquitto-dev ML. Sorry for your inconvenience. |
@karlp sorry l read your comment right now. Just I'd like to clarify @austin-rausch 's intent before my investigation. I've not add any label on this issue yet. |
Close this and handle it how you want. Bug report for IPv6 not being supported on mosquitto bridging / not in documentation. Or a feature request for IPv6 bridging, I don't care. You have the information do whatever you want with it. |
@karlp could you show the evidence of a bug? |
seriously? let me reword the original (valid) bug report First, let's set up a v6 only broker, happily listening via a v6 address in the bind_address or listener directives....
Now, let's make a bridge connection to that via the ipv6 name "localhost6"
See how it accepts v6 addresses and v6 resolutions of names everywhere except the "address" directive to a bridge? That's what this bug is for. I don't believe that could be considered anything other than a bug. |
There is a possibility originally no intention to support v6 bridge, but just happened to run in the case of the name resolution? |
really? so v6 should be supported for listening, but not connecting? that would be horrifically inconsistent and simply an even bigger bug. |
Sorry, I didn't say should, nor clarified into one side. There are both possibilities. The truth is behind @ralight 's intent. |
I've changed the label as a bug, because I found the intent of implementation of IPv6 bridge on ver 1.4.11 in ChangeLog.txt. |
Closes #886. Signed-off-by: Roger A. Light <roger@atchoo.org>
I've just pushed a change that fixes this. Are you able to test the |
Closes #886. Signed-off-by: Roger A. Light <roger@atchoo.org>
Using IPv6 addresses for bridging brokers currently does not work with Mosquitto. This doesn't appear in the documentation anywhere either.
In the meantime, if this requires a lot of code changes a documentation update to specify that only IPv4 sockets are supported for bridges at this time should be made.
A couple things will need changed to make IPv6 addresses work:
:
token and splits on that token for<address>:<port>
, this doesn't work for IPv6 addresses because they have:
as their delimiter. This should be changed to look from the end instead of the beginning. LinkThoughts? Concerns?
The text was updated successfully, but these errors were encountered: