Change-Id: Ieb1931c40b37b87fc7d0011461d9f583e73aaff9
Reviewed-on: https://go-review.googlesource.com/c/go/+/557778
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
return ip.appendTo4(b)
default:
if ip.Is4In6() {
- b = append(b, "::ffff:"...)
- b = ip.Unmap().appendTo4(b)
- if z := ip.Zone(); z != "" {
- b = append(b, '%')
- b = append(b, z...)
- }
- return b
+ return ip.appendTo4In6(b)
}
return ip.appendTo6(b)
}