use a netip.Addr instead of a net.IP in the packetInfo struct

This commit is contained in:
Marten Seemann
2023-05-13 15:19:58 +03:00
parent b27d114f07
commit 3b5950a1ce
5 changed files with 36 additions and 33 deletions

View File

@@ -2,7 +2,10 @@
package quic
import "net"
import (
"net"
"net/netip"
)
func newConn(c net.PacketConn, supportsDF bool) (*basicConn, error) {
return &basicConn{PacketConn: c, supportsDF: supportsDF}, nil
@@ -12,7 +15,7 @@ func inspectReadBuffer(any) (int, error) { return 0, nil }
func inspectWriteBuffer(any) (int, error) { return 0, nil }
type packetInfo struct {
addr net.IP
addr netip.Addr
}
func (i *packetInfo) OOB() []byte { return nil }