Skip to content

server-host=!6 also binds to ipv4  #3202

@steve-chavez

Description

@steve-chavez

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions