We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0767fe0 commit a19e47cCopy full SHA for a19e47c
modules/migrations/migrate.go
@@ -475,10 +475,7 @@ func Init() error {
475
return nil
476
}
477
478
-// isIPPrivate reports whether ip is a private address, according to
479
-// RFC 1918 (IPv4 addresses) and RFC 4193 (IPv6 addresses).
480
-// from https://github.com/golang/go/pull/42793
481
-// TODO remove if https://github.com/golang/go/issues/29146 got resolved
+// TODO: replace with `ip.IsPrivate()` if min go version is bumped to 1.17
482
func isIPPrivate(ip net.IP) bool {
483
if ip4 := ip.To4(); ip4 != nil {
484
return ip4[0] == 10 ||
0 commit comments