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
It binds to both ipv4 and ipv6, and should print both interfaces in the log correctly.
Example:
Running MyAppWeb.Endpoint with cowboy 2.8.0 at 0.0.0.0:4000 and ::4000 (http)
Actual behavior
It prints only the latter interface, not both
http: [:inet, :inet6, port: 4000] => ::4000
http: [:inet6, :inet, port: 4000] => 0.0.0.0:4000
Example:
Running MyAppWeb.Endpoint with cowboy 2.8.0 at 0.0.0.0:4000 (http)
Note that :ranch.info/0 does not return two entry - just one entry (like :ranch.get_addr/1 - when binding to two sockets - so without ranch changes it's tricky to know that.
The text was updated successfully, but these errors were encountered:
I think it is fine, we don't have to show both. The goal is to show something people can access in development or access locally and not a comprehensive list. Thank you!
The goal is to show something people can access in development or access locally and not a comprehensive list.
I disagree to this, since it's info log (not debug) and it does print out in default prod info from phoenix app by default.
However, since the underlying library does not provide this information in an easy way to get them.. and it's less likely to bind to two interface (it's more common to each app serve ipv4 and let load balancer handle ipv6), closing it for now makes sense!
Environment
Expected behavior
when listening on both ipv4 and ipv6, log message should show both addresses
It binds to both ipv4 and ipv6, and should print both interfaces in the log correctly.
Example:
Actual behavior
It prints only the latter interface, not both
http: [:inet, :inet6, port: 4000]
=>::4000
http: [:inet6, :inet, port: 4000]
=>0.0.0.0:4000
Example:
Note that
:ranch.info/0
does not return two entry - just one entry (like:ranch.get_addr/1
- when binding to two sockets - so without ranch changes it's tricky to know that.The text was updated successfully, but these errors were encountered: