mirror of
https://github.com/moby/moby.git
synced 2026-08-03 14:41:03 +00:00
Follow-up to PR 52804, applying thaJeztah's review suggestion: check IsLoopback first for both address families (preserving any requested loopback address), and only fall back to the canonical loopback for the family otherwise. No behavior change; ::1 now returns through the loopback-preserving branch instead of the IPv6 fallback, with the same result. Signed-off-by: Andrew Liu <andrewjliu22@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>