Hi
There are still validation issues unfortunately; see the attached screenshot.
I'm a little bit worried about the validation for the IP being so different in Python vs. JS. We should really have both of course (Python for defensive purposes, JS for usability), but it's clear they can lead to different results. I think we should use the regexp approach in both cases (because client-side tests against sockets are a) probably not possible, and b) it's the server that matters - e.g. if the client doesn't support v6, but the server does). Thoughts?
I've also attached an updated patch in which I tweaked a couple of things, including docs. Please work from that.
--
Dave Page
Blog:
http://pgsnake.blogspot.comTwitter: @pgsnake
EnterpriseDB UK:
http://www.enterprisedb.comThe Enterprise PostgreSQL Company