aboutsummaryrefslogtreecommitdiff
path: root/pkg/cloudflare
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-21 13:50:05 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-10-21 13:50:05 -0400
commit5114f1d3f2db648b1f7a3d5f81efc42726cc50d3 (patch)
tree8cb0b5f2cf29096fa3529a6bec9df4dc92bae7a0 /pkg/cloudflare
parentd22d9b657f593ead4214bad2c3033f757174fe66 (diff)
downloadAtlas-5114f1d3f2db648b1f7a3d5f81efc42726cc50d3.tar.gz
Atlas-5114f1d3f2db648b1f7a3d5f81efc42726cc50d3.zip
pkg/cloudflare: Fix printf arguments
Diffstat (limited to 'pkg/cloudflare')
-rw-r--r--pkg/cloudflare/iplist.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/cloudflare/iplist.go b/pkg/cloudflare/iplist.go
index d19367e..ee152a5 100644
--- a/pkg/cloudflare/iplist.go
+++ b/pkg/cloudflare/iplist.go
@@ -32,8 +32,8 @@ func HasIP(ip netip.Addr) bool {
func UpdateIPs(ctx context.Context) error {
var ps []netip.Prefix
for _, v := range []int{4, 6} {
- if v, err := fetchIPs(ctx, "https://www.cloudflare.com/ips-v"+strconv.Itoa(v)); err == nil {
- ps = append(ps, v...)
+ if x, err := fetchIPs(ctx, "https://www.cloudflare.com/ips-v"+strconv.Itoa(v)); err == nil {
+ ps = append(ps, x...)
} else {
fmt.Fprintf(os.Stderr, "error: fetch ipv%d list: %v\n", v, err)
os.Exit(1)