mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
UDPMuxParams use net.PacketConn instead of UDPConn
UDPConn satisifies the net.PacketConn interface. Allows us to pass in structures that satisfy the interface, but aren't a UDPConn
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ const maxAddrSize = 512
|
||||
// UDPMuxParams are parameters for UDPMux.
|
||||
type UDPMuxParams struct {
|
||||
Logger logging.LeveledLogger
|
||||
UDPConn *net.UDPConn
|
||||
UDPConn net.PacketConn
|
||||
}
|
||||
|
||||
// NewUDPMuxDefault creates an implementation of UDPMux
|
||||
|
||||
Reference in New Issue
Block a user