Skip to content

Commit

Permalink
Merge pull request #95 from Shopify/fix-cidr-error-log-output
Browse files Browse the repository at this point in the history
fix cidrlimit error log output
  • Loading branch information
k8s-ci-robot committed Dec 7, 2022
2 parents a6f1082 + 4cf5a15 commit f23e75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ip-masq-agent/ip-masq-agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (c *MasqConfig) validate() error {
l := c.CidrLimit

if n > l {
return fmt.Errorf("the daemon can only accept up to %b CIDRs (excluding link-local), but got %d CIDRs (excluding link local)", l, n)
return fmt.Errorf("the daemon can only accept up to %d CIDRs (excluding link-local), but got %d CIDRs (excluding link local)", l, n)
}
// check CIDRs are valid
for _, cidr := range c.NonMasqueradeCIDRs {
Expand Down

0 comments on commit f23e75a

Please sign in to comment.