We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8351c5b commit 20a5223Copy full SHA for 20a5223
client.go
@@ -115,9 +115,10 @@ func NewClient(config *ClientConfig) (*Client, error) {
115
116
if len(config.TURNServerAddr) > 0 {
117
turnServ, err = config.Net.ResolveUDPAddr("udp4", config.TURNServerAddr)
118
- if err != nil && !config.IgnoreTURNResolveErrors {
119
- return nil, err
120
- } else if err != nil {
+ if err != nil {
+ if !config.IgnoreTURNResolveErrors {
+ return nil, err
121
+ }
122
log.Debugf("Failed to resolve TURN server %s: %s", config.TURNServerAddr, err)
123
} else {
124
log.Debugf("Resolved TURN server %s to %s", config.TURNServerAddr, turnServ)
0 commit comments