| From: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
|---|---|
| To: | pgsql-patches(at)postgresql(dot)org |
| Subject: | IPV4 addresses on IPV6 machines in pg_hba.conf |
| Date: | 2003-09-03 17:19:16 |
| Message-ID: | 3F562294.2080206@pse-consulting.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-patches |
This was discussed in [HACKERS] TCP/IP with 7.4 beta2 broken?
I created a patch to hba.c which uses IPV4 entries as IPV6 entries if
running on a IPV6 system (which is detected from a port coming in as
AF_INET6).
192.168.0.0/24 -> ::ffff:102.168.0/120
192.168.0.0 255.255.255.0 -> ::ffff:102.168.0 ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.0
This helps people that think they're using IPV4 while actually their
system silently is using IPV6 (such as SuSE 8.1, 8.2).
Regards,
Andreas
| Attachment | Content-Type | Size |
|---|---|---|
| hba.conf.diff | text/plain | 3.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2003-09-03 19:06:23 | Re: 7.3: [BUGS] to_timestamp not stable if date string shorter than |
| Previous Message | Karel Zak | 2003-09-03 16:51:47 | 7.3: [BUGS] to_timestamp not stable if date string shorter than |