mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
We have just finished porting the old KAME IPv6 patch over to
postgresql version 7.3, but yea... this patch adds full IPv6 support to postgres. I've tested it out on 7.2.3 and has been running perfectly stable. CREDITS: The KAME Project (Initial patch) Nigel Kukard <nkukard@lbsd.net> Johan Jordaan <johanj@lando.co.za>
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.92 2002/12/03 22:09:19 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.93 2002/12/06 03:46:24 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -410,9 +410,12 @@ ClientAuthentication(Port *port)
|
||||
*/
|
||||
{
|
||||
const char *hostinfo = "localhost";
|
||||
char ip_hostinfo[INET6_ADDRSTRLEN];
|
||||
if (isAF_INETx(&port->raddr.sa) ){
|
||||
hostinfo = SockAddr_ntop(&port->raddr, ip_hostinfo,
|
||||
INET6_ADDRSTRLEN, 1);
|
||||
}
|
||||
|
||||
if (port->raddr.sa.sa_family == AF_INET)
|
||||
hostinfo = inet_ntoa(port->raddr.in.sin_addr);
|
||||
elog(FATAL,
|
||||
"No pg_hba.conf entry for host %s, user %s, database %s",
|
||||
hostinfo, port->user, port->database);
|
||||
|
Reference in New Issue
Block a user