_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)

CommentFileSizeAuthor
hosting_ipv6.patch624 bytesbart.hanssens

Comments

bgm’s picture

Status: Needs review » Reviewed & tested by the community

Works for me (and I agree that relying on inet_pton() should be enough).

anarcat’s picture

Status: Reviewed & tested by the community » Fixed

fix committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.