Closed (fixed)
Project:
Hostmaster (Aegir)
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2011 at 13:10 UTC
Updated:
20 Mar 2012 at 23:00 UTC
_hosting_valid_ip (in profiles/hostmaster/modules/hosting/hosting.inc) does not support IPv6 addresses.
IMHO the verification of IPv4 addresses can be simplified by using inet_pton instead of writing validation code, this should also work for Ipv6 addresses (if PHP is compiled with IPv6 support enabled)
| Comment | File | Size | Author |
|---|---|---|---|
| hosting_ipv6.patch | 624 bytes | bart.hanssens |
Comments
Comment #1
bgm commentedWorks for me (and I agree that relying on inet_pton() should be enough).
Comment #2
anarcat commentedfix committed, thanks.