Problem
We document that !6 should only bind to ipv6, however a request using ipv4 succeeds
$ PGRST_SERVER_HOST='!6' postgrest-with-postgresql-16 postgrest-run
$ curl localhost:3000/projects --ipv4 -I
HTTP/1.1 200 OK
Notes
Using !4 works as expected:
PGRST_SERVER_HOST='!4' postgrest-with-postgresql-15 postgrest-run
$ curl localhost:3000/projects --ipv6 -I
curl: (7) Failed to connect to localhost port 3000 after 0 ms: Connection refused
Problem
We document that
!6should only bind to ipv6, however a request using ipv4 succeeds$ PGRST_SERVER_HOST='!6' postgrest-with-postgresql-16 postgrest-runNotes
Using
!4works as expected:PGRST_SERVER_HOST='!4' postgrest-with-postgresql-15 postgrest-run