mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-03 14:52:36 +02:00
Merge #1481
1481: Postgresql: default SUBNET6 in pg_hba r=mergify[bot] a=muhlemmer ## What type of PR? Bug fix ## What does this PR do? When PostgreSQL for Mailu is used in IPv4 only, without IPv6, `SUBNET6` is unset and causes an empty field in the `pg_hba.conf` file. PostgreSQL refuses to start in this case. ### Related issue(s) - Bug was introduced in #1257, merged recently - 1.7 user reported PostgreSQL connection errors on IPv6 in #1479 - #1257 was Backported to 1.7 in #1469 - Users on 1.7 reported this broke IPv4 installation in #1479 - Backport was reverted in #1480 Sorry for the mess 😒 **Note: ** if this patch seems to be stable, I will re-initiate the backport. ## Prerequistes Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/guide.html#changelog) entry file. Co-authored-by: Tim Möhlmann <muhlemmer@gmail.com>
This commit is contained in:
commit
535562e5fa
@ -82,7 +82,7 @@ local all all peer map=local
|
||||
host mailu mailu {{ SUBNET }} md5
|
||||
host postgres health 127.0.0.1/32 trust
|
||||
# IPv6 local connections:
|
||||
host mailu mailu {{ SUBNET6 }} md5
|
||||
host mailu mailu {{ SUBNET6|default('::1/128') }} md5
|
||||
host all all ::1/128 reject
|
||||
# Allow replication connections from localhost, by a user with the
|
||||
# replication privilege.
|
||||
|
1
towncrier/newsfragments/1479.bug
Normal file
1
towncrier/newsfragments/1479.bug
Normal file
@ -0,0 +1 @@
|
||||
Allow IPv6 authenticated connections in PostgreSQL pg_hba.conf
|
Loading…
x
Reference in New Issue
Block a user