mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-17 14:18:55 +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{}
|
cf := &CloudflareApi{}
|
||||||
domain := newDomainConfig()
|
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 {
|
for _, tst := range tests {
|
||||||
rec := &models.RecordConfig{Type: "A", Target: tst.Given, Metadata: map[string]string{metaProxy: tst.Proxy}}
|
rec := &models.RecordConfig{Type: "A", Target: tst.Given, Metadata: map[string]string{metaProxy: tst.Proxy}}
|
||||||
domain.Records = append(domain.Records, rec)
|
domain.Records = append(domain.Records, rec)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue