mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-04 20:24:23 +08:00
Clean "go vet" issue in providers/cloudflare/preprocess_test.go
This commit is contained in:
parent
21e4cb4fc3
commit
a77f89ca72
1 changed files with 5 additions and 1 deletions
|
@ -91,7 +91,11 @@ func TestIpRewriting(t *testing.T) {
|
|||
}
|
||||
cf := &CloudflareApi{}
|
||||
domain := newDomainConfig()
|
||||
cf.ipConversions = []transform.IpConversion{{net.ParseIP("1.2.3.0"), net.ParseIP("1.2.3.40"), []net.IP{net.ParseIP("255.255.255.0")}, nil}}
|
||||
cf.ipConversions = []transform.IpConversion{{
|
||||
Low: net.ParseIP("1.2.3.0"),
|
||||
High: net.ParseIP("1.2.3.40"),
|
||||
NewBases: []net.IP{net.ParseIP("255.255.255.0")},
|
||||
NewIPs: nil}}
|
||||
for _, tst := range tests {
|
||||
rec := &models.RecordConfig{Type: "A", Target: tst.Given, Metadata: map[string]string{metaProxy: tst.Proxy}}
|
||||
domain.Records = append(domain.Records, rec)
|
||||
|
|
Loading…
Add table
Reference in a new issue