Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17bb563

Browse files
committed
Comment out entries for IPv6 localhost connections, since they fail
on machines with no IPv6 support.
1 parent 5b54564 commit 17bb563

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/backend/libpq/pg_hba.conf.sample

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@
5050

5151
# TYPE DATABASE USER IP-ADDRESS IP-MASK METHOD
5252

53-
local all all trust
54-
host all all 127.0.0.1 255.255.255.255 trust
55-
host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust
56-
host all all ::ffff:127.0.0.1/128 trust
53+
local all all trust
54+
host all all 127.0.0.1 255.255.255.255 trust
5755

56+
# uncomment these to support IPv6 localhost connections
57+
# host all all ::1 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff trust
58+
# host all all ::ffff:127.0.0.1/128 trust

0 commit comments

Comments
 (0)