Hello again,
Adding "default_bind tcp4/0.0.0.0 tcp6/[::]" to the global config of my
Caddyfile made caddy bind to the IPv6 address and fixed my issue.
I believe that a note about this should be added to the package README
to help more people use IPv6 as it's such a simple fix.
Thank you very much for your help
On 12/10/26 18:24, Stuart Henderson wrote:
On 2026/10/12 02:57, pvpdm email wrote:
Hello OpenBSD ports team,
I am using caddy-2.11.4 to act as a simple http server and reverse proxy for
some services in
my home network.
I have both IPv4 and IPv6 support from my ISP and I have enabled IPv6 on on the
OpenBSD
machine. My issue is that caddy refuses to bind to any IPv6 interface/address.
If I try to
bind, for example, port 443 with nc it listens on it just fine. I tried binding
a static
response with `bind [::]` on port 8888, but it still refuses to bind.
go is a bit broken with OS that don't allow v6 family sockets to accept
v4 connections.
caddy allows specifying the address family, so try specifically binding
with "tcp4/0.0.0.0" and "tcp6/[::]".