Golang 1.17 adds a new IP.IsPrivate function we could use
mattm-stripe opened this issue · comments
Matthew McPherrin commented
https://pkg.go.dev/net#IP.IsPrivate
This function could be used instead of our own PrivateRuleRanges,
smokescreen/pkg/smokescreen/smokescreen.go
Line 155 in dc40301
https://github.com/stripe/smokescreen/blob/master/pkg/smokescreen/constants.go#L20-L25
https://github.com/stripe/smokescreen/blob/master/pkg/smokescreen/constants.go#L38-L45
As Smokescreen supports the two most recent Go releases, we should wait until 1.18 is released so that we can support both 1.17 and 1.18