You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I configure a listener with *:8080 unitd only listens on 0.0.0.0:8080 and not on :::8080.
The documentation states the following: A wildcard that matches any host IPs on the port: *:80
When I configure a listener with *:8080 unitd only listens on 0.0.0.0:8080 and not on :::8080.
Indeed.
The documentation states the following: A wildcard that matches any host IPs on the port: *:80
What it really means is it listens on the 'unspecified address', of course this address is different for IPv4 & IPv6.
Now I suppose it could be interpreted to mean listen on the 'unspecified address' of both IPv4 & IPv6. But then it's current meaning could also be argued as correct as *:80 would not be how to specify an IPv6 address + port due to the address/port separator being a :. Now, [*]:8080 isn't valid in Unit, but then [::]:8080 is only one extra character.
It was also possibly thought it better to keep IPv4 and IPv6 address specifications separate, precisely so that *:8080 would only listen on IPv4 and not present Unit on IPv6 (perhaps unknowingly).
For that reason I'm not sure we'd change its behaviour now...
So as you discovered to have Unit listen on port 8080 on both IPv4 & IPv6, you will need two listen directives (actually this is same as for nginx).
Thank you for the clarification. I think it would be helpful to have a way to specify a listen address with a "real wildcard" that allows for IPv4 and IPv6 listening, just to remove duplication in the configuration (se the linked MR). For now I will use two listeners.
Bug Overview
When I configure a listener with
*:8080
unitd only listens on0.0.0.0:8080
and not on:::8080
.The documentation states the following:
A wildcard that matches any host IPs on the port: *:80
Expected Behavior
unitd listens on all configured IP addresses.
Steps to Reproduce the Bug
Minimal configuration example:
Environment Details
Additional Context
No response
The text was updated successfully, but these errors were encountered: