Skip to content

Commit 8b43e32

Browse files
committed
Revert to our pre-7.4 behavior of identifying Unix-socket connections in
ps status as '[local]', not as 'localhost' as the code has been doing recently. That's too easily confused with TCP loopback connections, and there is no good reason to change the behavior anyway.
1 parent b1d3de6 commit 8b43e32

File tree

1 file changed

+2
-2
lines changed
  • src/backend/libpq

1 file changed

+2
-2
lines changed

src/backend/libpq/ip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.22 2003/09/08 00:56:13 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/libpq/ip.c,v 1.23 2003/09/12 20:18:51 tgl Exp $
1212
*
1313
* This file and the IPV6 implementation were initially provided by
1414
* Nigel Kukard <nkukard@lbsd.net>, Linux Based Systems Design
@@ -252,7 +252,7 @@ getnameinfo_unix(const struct sockaddr_un * sa, int salen,
252252

253253
if (node)
254254
{
255-
ret = snprintf(node, nodelen, "%s", "localhost");
255+
ret = snprintf(node, nodelen, "%s", "[local]");
256256
if (ret == -1 || ret > nodelen)
257257
return EAI_MEMORY;
258258
}

0 commit comments

Comments
 (0)