mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
use samehost instead of the host's ip address.
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user