tiny refactor: make use of helper function
This commit is contained in:
1 parent
85971193a8
commit
bb99b21248
1 file changed
+1
-1
@@ -63,7 +63,7 @@ func minimalServer(w dns.ResponseWriter, req *dns.Msg) {
|
||||
}
|
||||
|
||||
func RunLocalMulticastServer() (*dns.Server, error) {
|
||||
multicast, err := net.ListenMulticastUDP("udp", nil, ipv4Addr)
|
||||
multicast, err := LinkLocalMulticastListener(nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user