Skip to content

Commit a19e47c

Browse files
committed
update TODO in migrations
1 parent 0767fe0 commit a19e47c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

modules/migrations/migrate.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,7 @@ func Init() error {
475475
return nil
476476
}
477477

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
478+
// TODO: replace with `ip.IsPrivate()` if min go version is bumped to 1.17
482479
func isIPPrivate(ip net.IP) bool {
483480
if ip4 := ip.To4(); ip4 != nil {
484481
return ip4[0] == 10 ||

0 commit comments

Comments
 (0)