unmap IPv4-mapped IPv6 addresses (#4309)

This commit is contained in:
Thijs van Dien
2024-03-05 10:45:53 +01:00
committed by GitHub
parent 71f5ae5ecb
commit a70419b49f
2 changed files with 2 additions and 2 deletions

View File

@@ -235,7 +235,7 @@ var _ = Describe("OOB Conn Test", func() {
Eventually(packetChan).Should(Receive(&p))
Expect(utils.IsIPv4(p.remoteAddr.(*net.UDPAddr).IP)).To(BeTrue())
Expect(p.info).To(Not(BeNil()))
Expect(p.info.addr.Is4In6() || p.info.addr.Is4()).To(BeTrue())
Expect(p.info.addr.Is4()).To(BeTrue())
ip := p.info.addr.As4()
Expect(net.IP(ip[:])).To(Equal(ip4.To4()))