mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
Postmaster erroneously rejected SSL connections on IPv6.
This commit is contained in:
parent
3b7c5aa548
commit
5b545644cf
@ -37,7 +37,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.337 2003/07/27 21:49:54 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/postmaster/postmaster.c,v 1.338 2003/08/01 23:25:00 tgl Exp $
|
||||||
*
|
*
|
||||||
* NOTES
|
* NOTES
|
||||||
*
|
*
|
||||||
@ -1232,7 +1232,7 @@ ProcessStartupPacket(Port *port, bool SSLdone)
|
|||||||
|
|
||||||
#ifdef USE_SSL
|
#ifdef USE_SSL
|
||||||
/* No SSL when disabled or on Unix sockets */
|
/* No SSL when disabled or on Unix sockets */
|
||||||
if (!EnableSSL || port->laddr.addr.ss_family != AF_INET)
|
if (!EnableSSL || IS_AF_UNIX(port->laddr.addr.ss_family))
|
||||||
SSLok = 'N';
|
SSLok = 'N';
|
||||||
else
|
else
|
||||||
SSLok = 'S'; /* Support for SSL */
|
SSLok = 'S'; /* Support for SSL */
|
||||||
|
Loading…
Reference in New Issue
Block a user