Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed IPv6 validation bug

  • Loading branch information...
commit c8e935f4a32bc2468de0da1260b0f47877b894d8 1 parent b6b949d
@shupp authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/functions.php
View
8 src/functions.php
@@ -297,8 +297,8 @@ function verify_record($name,$type,$address,$distance,$weight,$port,$ttl) {
}
// verify AAAA record
- if($type == 'AAAA') {
- if(validate_ipv6ip($address) == FALSE) {
+ if($type == '3') {
+ if(validate_ipv6($address) == FALSE) {
return "\"$address\" is not a valid AAAA record address";
}
if(check_domain_name_format($name) == FALSE) {
@@ -307,8 +307,8 @@ function verify_record($name,$type,$address,$distance,$weight,$port,$ttl) {
}
// verify AAAA+PTR record
- if($type == 'AAAA+PTR') {
- if(validate_ipv6ip($address) == FALSE) {
+ if($type == '6') {
+ if(validate_ipv6($address) == FALSE) {
return "\"$address\" is not a valid AAAA+PTR record address";
}
if(check_domain_name_format($name) == FALSE) {
Please sign in to comment.
Something went wrong with that request. Please try again.