Skip to content

Commit

Permalink
Add comment to new Net field in UDPMuxParams
Browse files Browse the repository at this point in the history
To describe its purpose.
  • Loading branch information
stv0g committed Feb 8, 2023
1 parent d28e9f7 commit 69c6b0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion udp_mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69c6b0e

Please sign in to comment.