Skip to content

Commit b79d1e1

Browse files
author
James William Pye
committed
Default listen_addresses to 'localhost'.
1 parent f87125f commit b79d1e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def address(self):
438438
if 'listen_addresses' in d:
439439
# Prefer localhost over other addresses.
440440
# More likely to get a successful connection.
441-
addrs = d['listen_addresses'].lower().split(',')
441+
addrs = d.get('listen_addresses', 'localhost').lower().split(',')
442442
if 'localhost' in addrs or '*' in addrs:
443443
host = 'localhost'
444444
elif '127.0.0.1' in addrs:

0 commit comments

Comments
 (0)