Skip to content

Commit

Permalink
Update module github.com/pion/mdns to v2
Browse files Browse the repository at this point in the history
Generated by renovateBot
  • Loading branch information
Sean-Der committed Mar 19, 2024
1 parent f0c60fe commit 5fcf038
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
atomicx "github.com/pion/ice/v3/internal/atomic"
stunx "github.com/pion/ice/v3/internal/stun"
"github.com/pion/logging"
"github.com/pion/mdns"
"github.com/pion/mdns/v2"
"github.com/pion/stun/v2"
"github.com/pion/transport/v3"
"github.com/pion/transport/v3/packetio"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/kr/pretty v0.1.0 // indirect
github.com/pion/dtls/v2 v2.2.10
github.com/pion/logging v0.2.2
github.com/pion/mdns v0.0.12
github.com/pion/mdns/v2 v2.0.4
github.com/pion/randutil v0.1.0
github.com/pion/stun/v2 v2.0.0
github.com/pion/transport/v3 v3.0.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ github.com/pion/dtls/v2 v2.2.10 h1:u2Axk+FyIR1VFTPurktB+1zoEPGIW3bmyj3LEFrXjAA=
github.com/pion/dtls/v2 v2.2.10/go.mod h1:d9SYc9fch0CqK90mRk1dC7AkzzpwJj6u2GU3u+9pqFE=
github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY=
github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms=
github.com/pion/mdns v0.0.12 h1:CiMYlY+O0azojWDmxdNr7ADGrnZ+V6Ilfner+6mSVK8=
github.com/pion/mdns v0.0.12/go.mod h1:VExJjv8to/6Wqm1FXK+Ii/Z9tsVk/F5sD/N70cnYFbk=
github.com/pion/mdns/v2 v2.0.4 h1:ZdK19Yd+9iPrw95rW1tTwdjmYY5O3WwmsvfX6HBBefY=
github.com/pion/mdns/v2 v2.0.4/go.mod h1:y4Y034qALR23oAJuiElt2TP1ma7b1Q/uF1oYzIePHcM=
github.com/pion/randutil v0.1.0 h1:CFG1UdESneORglEsnimhUjf33Rwjubwj6xfiOXBa3mA=
github.com/pion/randutil v0.1.0/go.mod h1:XcJrSMMbbMRhASFVOlj/5hQial/Y8oH/HVo7TBZq+j8=
github.com/pion/stun/v2 v2.0.0 h1:A5+wXKLAypxQri59+tmQKVs7+l6mMM+3d+eER9ifRU0=
Expand Down
8 changes: 4 additions & 4 deletions mdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package ice
import (
"github.com/google/uuid"
"github.com/pion/logging"
"github.com/pion/mdns"
"github.com/pion/mdns/v2"
"github.com/pion/transport/v3"
"golang.org/x/net/ipv4"
)
Expand Down Expand Up @@ -38,7 +38,7 @@ func createMulticastDNS(n transport.Net, mDNSMode MulticastDNSMode, mDNSName str
return nil, mDNSMode, nil
}

addr, mdnsErr := n.ResolveUDPAddr("udp4", mdns.DefaultAddress)
addr, mdnsErr := n.ResolveUDPAddr("udp4", mdns.DefaultAddressIPv4)
if mdnsErr != nil {
return nil, mDNSMode, mdnsErr
}
Expand All @@ -52,10 +52,10 @@ func createMulticastDNS(n transport.Net, mDNSMode MulticastDNSMode, mDNSName str

switch mDNSMode {
case MulticastDNSModeQueryOnly:
conn, err := mdns.Server(ipv4.NewPacketConn(l), &mdns.Config{})
conn, err := mdns.Server(ipv4.NewPacketConn(l), nil, &mdns.Config{})
return conn, mDNSMode, err
case MulticastDNSModeQueryAndGather:
conn, err := mdns.Server(ipv4.NewPacketConn(l), &mdns.Config{
conn, err := mdns.Server(ipv4.NewPacketConn(l), nil, &mdns.Config{
LocalNames: []string{mDNSName},
})
return conn, mDNSMode, err
Expand Down

0 comments on commit 5fcf038

Please sign in to comment.