1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-09 18:21:05 +03:00

Fix 9.5 version of previous commit to match its log message.

This commit is contained in:
Noah Misch 2015-11-08 17:40:19 -05:00
parent bdb42bac3c
commit 40c28678aa

View File

@ -656,12 +656,10 @@ test_postmaster_connection(pgpid_t pm_pid, bool do_checkpoint)
*/
if (strcmp(host_str, "*") == 0)
strcpy(host_str, "localhost");
#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(WIN32)
else if (strcmp(host_str, "0.0.0.0") == 0)
strcpy(host_str, "127.0.0.1");
else if (strcmp(host_str, "::") == 0)
strcpy(host_str, "::1");
#endif
/*
* We need to set connect_timeout otherwise on Windows