Make HostStringIsLocalhost() call IPAddress::IsLoopback().
Currently, they do the same thing for numeric IPs (modulo a DCHECK that the IP is valid in HostStringIsLocalhost()), but I don't think we want the two methods to have potentially divergent concept of loopback IPs if, for instance, we add IPv6-mapped IPv4 loopback addresses. Bug: None Change-Id: Ia193c2dff08f90bf62847a89fb6b31f130f75fa7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1739482Reviewed-by:Eric Roman <eroman@chromium.org> Commit-Queue: Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#684452}
Showing
Please register or sign in to comment