We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f87125f commit b79d1e1Copy full SHA for b79d1e1
1 file changed
postgresql/cluster.py
@@ -438,7 +438,7 @@ def address(self):
438
if 'listen_addresses' in d:
439
# Prefer localhost over other addresses.
440
# More likely to get a successful connection.
441
- addrs = d['listen_addresses'].lower().split(',')
+ addrs = d.get('listen_addresses', 'localhost').lower().split(',')
442
if 'localhost' in addrs or '*' in addrs:
443
host = 'localhost'
444
elif '127.0.0.1' in addrs:
0 commit comments