1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

fixing a few mistakes in list conversion

This commit is contained in:
Craig Peterson
2016-09-27 12:28:09 -06:00
parent c747498b87
commit 3fb4f3b54c
3 changed files with 21 additions and 12 deletions

View File

@ -111,7 +111,7 @@ func TransformIPToList(address net.IP, transforms []IpConversion) ([]net.IP, err
return nil, err
}
if (thisIP >= min) && (thisIP <= max) {
if conv.NewIPs != nil {
if len(conv.NewIPs) > 0 {
return conv.NewIPs, nil
}
list := []net.IP{}