From c3ea0ebccd1f40f38cb9ebcc724986f65e8c7a4a Mon Sep 17 00:00:00 2001 From: Oleksii Kliukin Date: Fri, 24 Apr 2015 18:06:20 +0200 Subject: [PATCH] use samehost instead of the host's ip address. --- helpers/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/postgresql.py b/helpers/postgresql.py index ce6be64b..517f656b 100644 --- a/helpers/postgresql.py +++ b/helpers/postgresql.py @@ -147,7 +147,7 @@ class Postgresql: f.write("host replication %(username)s %(network)s md5" % {"username": self.replication["username"], "network": self.replication["network"]}) # allow TCP connections from the host's own address - f.write("\nhost postgres postgres %(network)s/32 trust\n" % {"network": self.host}) + f.write("\nhost postgres postgres samehost trust\n" % {"network": self.host}) f.close() def write_recovery_conf(self, leader_hash):