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):