From 2304dca2ca75806cd97c07fc001219a3d4d33781 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 12 Jun 2019 19:13:19 +0300 Subject: [PATCH] use net.ParseIP for ipv4 multicast addr Signed-off-by: Vasiliy Tolstov --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 1e9be9c..3eaa07d 100644 --- a/server.go +++ b/server.go @@ -14,7 +14,7 @@ import ( ) var ( - mdnsGroupIPv4 = net.IPv4(224, 0, 0, 251) + mdnsGroupIPv4 = net.ParseIP("224.0.0.251") mdnsGroupIPv6 = net.ParseIP("ff02::fb") // mDNS wildcard addresses