[glom: 3/4] Allow non-network-shared connections when using IPv6.
- From: Murray Cumming <murrayc src gnome org>
- To: svn-commits-list gnome org
- Subject: [glom: 3/4] Allow non-network-shared connections when using IPv6.
- Date: Thu, 7 May 2009 18:08:33 -0400 (EDT)
commit af328a33afddd2414aa916a838e1aa799c22d6db
Author: Murray Cumming <murrayc murrayc com>
Date: Thu May 7 20:27:29 2009 +0200
Allow non-network-shared connections when using IPv6.
* glom/libglom/connectionpool_backends/postgres_self.cc:
DEFAULT_CONFIG_PG_HBA_LOCAL: Add an entry in IPv6 syntax, because
something seems to be more IPv6-like in Ubuntu Jaunty.
---
ChangeLog | 8 ++++++++
.../connectionpool_backends/postgres_self.cc | 9 +++++----
2 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index a68d852..887322a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2009-05-07 Murray Cumming <murrayc murrayc-x61>
+
+ Allow non-network-shared connections when using IPv6.
+
+ * glom/libglom/connectionpool_backends/postgres_self.cc:
+ DEFAULT_CONFIG_PG_HBA_LOCAL: Add an entry in IPv6 syntax, because
+ something seems to be more IPv6-like in Ubuntu Jaunty.
+
2009-05-07 Murray Cumming <murrayc murrayc com>
Pass some sharedptr&s as const.
diff --git a/glom/libglom/connectionpool_backends/postgres_self.cc b/glom/libglom/connectionpool_backends/postgres_self.cc
index ea58c06..55b7007 100644
--- a/glom/libglom/connectionpool_backends/postgres_self.cc
+++ b/glom/libglom/connectionpool_backends/postgres_self.cc
@@ -85,12 +85,13 @@ local all all ident sameuser\n\
local all all md5\n\
\n\
# TCP connections from the same computer, with a password:\n\
-# TODO: IPv6 too.\n\
-host all all 127.0.0.1 255.255.255.255 md5\n"
+host all all 127.0.0.1 255.255.255.255 md5\n\
+# IPv6 local connections:\n\
+host all all ::1/128 md5\n"
#define DEFAULT_CONFIG_PG_HBA_REMOTE \
-DEFAULT_CONFIG_PG_HBA_LOCAL \
-"\n\
+"DEFAULT_CONFIG_PG_HBA_LOCAL \
+\n\
# IPv4 local connections:\n\
host all all 0.0.0.0/0 md5\n\
# IPv6 local connections:\n\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]