Closed renich closed 2 years ago
OK, it seems: Kemal.config.host_binding = "::"
works fine. It doesn't accept the mask /0
. I dunno how intuitive that is though.
Working example:
require "kemal"
get "/" do
"Hello, world!"
end
Kemal.config.host_binding = "::"
Kemal.run
I understand the reason your original approach failed is that ::/0
technically isn't a single address, it's an address range. The IP address stack doesn't recognize this.
Yes, correct. I was hoping to be able to listen to an address range probably. thank you for explaining, @straight-shoota. :D
Description
Kemal should be able to listen over IPv6.
If i set it up like this:
It should listen on all IPv6 ranges.
Steps to Reproduce
::/0
Expected behavior: [What you expect to happen] Kemal should be listening on all IPv6 ranges.
Actual behavior: [What actually happens] It fails:
Reproduces how often: [What percentage of the time does it reproduce?] All the time.
Versions
Running on Fedora 35.