rewrite `IsLocal` with `ip.IsPrivate()` and `ip.IsLinkLocalUnicast()`
The referenced MR has been implemented. The extra checks have been added in 8467c01e.
With this rewrite the checks are exactly the same as of Go 1.23.3.
Update: looking at the code, the second commit appears to change behavior, because IsLocal
will now return true
for IPv6 link-local unicast addresses.
Edited by WofWca