| From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
|---|---|
| To: | Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | alternative solution for ipv6 loopback |
| Date: | 2003-09-04 20:24:40 |
| Message-ID: | 3F579F88.1060202@dunslane.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
I just thought of something:
For a *real* special case, with no new keywords or other stuff, we could
just add something like this to hba.c at the start of the 'host*'
section of parse_hba():
#ifndef HAVE_IPV6
if (strcmp(token,"::1") == 0 || strcmp(token,"::1/128") == 0)
return;
#endif
A bit fragile, but it would allow a default line for the ip6 loopback
address that wouldn't break ip4 only postmasters.
Any other type of ip6 address would break, as I believe it should. And
we wouldn't have to write special routines to handle ip6 addresses where
we otherwise don't know about them.
cheers
andrew
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bertrand Petit | 2003-09-04 20:28:53 | Re: [HACKERS] [BUGS] 7.4 beta 1: SET log_statement=false |
| Previous Message | Manfred Spraul | 2003-09-04 20:13:18 | Re: Prelimiary DBT-2 Test results |