Skip to content

Commit a83e4b4

Browse files
committed
Un-break things on IPv6-less platforms.
Commit be37c21 forgot to teach initdb about commenting out the IPv6 replication entry that it caused to exist in pg_hba.conf.sample. Per buildfarm.
1 parent 07a61e1 commit a83e4b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/bin/initdb/initdb.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,15 +1213,23 @@ setup_config(void)
12131213

12141214
if (err != 0 ||
12151215
getaddrinfo("::1", NULL, &hints, &gai_result) != 0)
1216+
{
12161217
conflines = replace_token(conflines,
12171218
"host all all ::1",
12181219
"#host all all ::1");
1220+
conflines = replace_token(conflines,
1221+
"host replication all ::1",
1222+
"#host replication all ::1");
1223+
}
12191224
}
12201225
#else /* !HAVE_IPV6 */
12211226
/* If we didn't compile IPV6 support at all, always comment it out */
12221227
conflines = replace_token(conflines,
12231228
"host all all ::1",
12241229
"#host all all ::1");
1230+
conflines = replace_token(conflines,
1231+
"host replication all ::1",
1232+
"#host replication all ::1");
12251233
#endif /* HAVE_IPV6 */
12261234

12271235
/* Replace default authentication methods */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy