Add comment to new Net field in UDPMuxParams

To describe its purpose.
This commit is contained in:
Steffen Vogel
2023-02-08 21:58:49 +01:00
parent d28e9f700a
commit 69c6b0ee66
+5 -1
View File
@@ -50,7 +50,11 @@ const maxAddrSize = 512
type UDPMuxParams struct {
Logger logging.LeveledLogger
UDPConn net.PacketConn
Net transport.Net
// Required for gathering local addresses
// in case a un UDPConn is passed which does not
// bind to a specific local address.
Net transport.Net
}
// NewUDPMuxDefault creates an implementation of UDPMux