Changeset 629


Ignore:
Timestamp:
04/30/14 17:15:04 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix the fix in r626; it tried to convert the wrong part of the record
to a NetAddr::IP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r627 r629  
    544544    return ('FAIL',"A record must be a valid IPv4 address")
    545545        unless ${$args{val}} =~ /^\d+\.\d+\.\d+\.\d+$/;
    546     $args{addr} = new NetAddr::IP ${$args{host}};
     546    $args{addr} = new NetAddr::IP ${$args{val}};
    547547    return ('FAIL',"A record must be a valid IPv4 address")
    548548        unless $args{addr} && !$args{addr}->{isv6};
Note: See TracChangeset for help on using the changeset viewer.