diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/github.com/apparentlymart/go-cidr/cidr/cidr.go | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/github.com/apparentlymart/go-cidr/cidr/cidr.go')
-rw-r--r-- | vendor/github.com/apparentlymart/go-cidr/cidr/cidr.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/github.com/apparentlymart/go-cidr/cidr/cidr.go b/vendor/github.com/apparentlymart/go-cidr/cidr/cidr.go index 7534473..c292db0 100644 --- a/vendor/github.com/apparentlymart/go-cidr/cidr/cidr.go +++ b/vendor/github.com/apparentlymart/go-cidr/cidr/cidr.go | |||
@@ -71,12 +71,12 @@ func Host(base *net.IPNet, num int) (net.IP, error) { | |||
71 | if numUint64 > maxHostNum { | 71 | if numUint64 > maxHostNum { |
72 | return nil, fmt.Errorf("prefix of %d does not accommodate a host numbered %d", parentLen, num) | 72 | return nil, fmt.Errorf("prefix of %d does not accommodate a host numbered %d", parentLen, num) |
73 | } | 73 | } |
74 | var bitlength int | 74 | var bitlength int |
75 | if ip.To4() != nil { | 75 | if ip.To4() != nil { |
76 | bitlength = 32 | 76 | bitlength = 32 |
77 | } else { | 77 | } else { |
78 | bitlength = 128 | 78 | bitlength = 128 |
79 | } | 79 | } |
80 | return insertNumIntoIP(ip, num, bitlength), nil | 80 | return insertNumIntoIP(ip, num, bitlength), nil |
81 | } | 81 | } |
82 | 82 | ||