diff --git a/src/Http.php b/src/Http.php index dca0ddb22..36a12d9c8 100755 --- a/src/Http.php +++ b/src/Http.php @@ -39,7 +39,7 @@ class Http extends Uri /** * @see Uri::$validHostTypes */ - protected $validHostTypes = self::HOST_DNSORIPV4; + protected $validHostTypes = self::HOST_DNSORIPV6; /** * User name as provided in authority of URI diff --git a/src/Uri.php b/src/Uri.php index 809e64a7d..df0abff8e 100755 --- a/src/Uri.php +++ b/src/Uri.php @@ -39,6 +39,7 @@ class Uri const HOST_IPVANY = 7; const HOST_DNSNAME = 8; const HOST_DNSORIPV4 = 9; + const HOST_DNSORIPV6 = 10; const HOST_REGNAME = 16; const HOST_ALL = 31;