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

Anonymous setting for websockets is being ignored #2459

Closed
giddyhup opened this issue Feb 12, 2022 · 2 comments
Closed

Anonymous setting for websockets is being ignored #2459

giddyhup opened this issue Feb 12, 2022 · 2 comments

Comments

@giddyhup
Copy link

I just upgraded to mosquitto 2.0.11 from a a pre 2 version using Raspberry Pi OS Bullseye (Linux XXX 5.10.92-v7l+ #1514 SMP Mon Jan 17 17:38:03 GMT 2022 armv7l GNU/Linux). I noticed that now I have to explicitly allow anonymous connections. I allowed it (see excerpt from mosquitto.conf below) but websocket connections are being refused.

listener 1884
protocol websockets
allow_anonymous true

listener 1883
allow_anonymous true
@giddyhup
Copy link
Author

I got it working with this, I don't know if this is just a workaround or by design. Please close if this is not an issue.

# [...]
allow_anonymous true

# [...]
listener 1884
protocol websockets
allow_anonymous true
socket_domain ipv4

listener 1883
allow_anonymous true
socket_domain ipv4

@ralight
Copy link
Contributor

ralight commented Aug 10, 2022

Thanks, I'm glad you got it sorted.

@ralight ralight closed this as completed Aug 10, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 20, 2022
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

2 participants