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:
Sean DuBois
2021-10-26 14:45:21 -04:00
parent 6d30128765
commit d5db223420
+1 -1
View File
@@ -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