Fix comment and error name

Co-authored-by: Eric Daniels <eric@erdaniels.com>
This commit is contained in:
Steffen Vogel
2023-02-08 21:58:49 +01:00
co-authored by Eric Daniels
parent 69c6b0ee66
commit 228c31f051
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -604,7 +604,7 @@ func (a *Agent) gatherCandidatesRelay(ctx context.Context, urls []*URL) { //noli
udpConn, dialErr := a.net.DialUDP("udp", nil, udpAddr)
if dialErr != nil {
a.log.Warnf("Failed to dial DTLS Address %s: %v", TURNServerAddr, connectErr)
a.log.Warnf("Failed to dial DTLS Address %s: %v", TURNServerAddr, dialErr)
return
}
+1 -1
View File
@@ -218,7 +218,7 @@ func UDPMuxFromPortWithLoopback() UDPMuxFromPortOption {
}
}
// UDPMuxFromPortWithNet set loopback interface should be included
// UDPMuxFromPortWithNet sets the network transport to use.
func UDPMuxFromPortWithNet(n transport.Net) UDPMuxFromPortOption {
return &udpMuxFromPortOption{
f: func(p *multiUDPMuxFromPortParam) {