From d5db22342061ee429c247141700b1e02e73acf54 Mon Sep 17 00:00:00 2001 From: Sean DuBois Date: Tue, 26 Oct 2021 12:26:16 -0400 Subject: [PATCH] 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 --- udp_mux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udp_mux.go b/udp_mux.go index 6f0ed73..0bbe3b5 100644 --- a/udp_mux.go +++ b/udp_mux.go @@ -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