From 16949c1ada9c1f23bab61d242408d9f989357fc1 Mon Sep 17 00:00:00 2001 From: Asim Date: Sat, 30 Apr 2016 00:22:31 +0100 Subject: [PATCH] Use mdns-sd service --- mdns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mdns.go b/mdns.go index 92bcfee..711007c 100644 --- a/mdns.go +++ b/mdns.go @@ -13,8 +13,8 @@ import ( "sync" "time" - "github.com/micro/mdns" "github.com/micro/go-micro/registry" + "github.com/micro/mdns" hash "github.com/mitchellh/hashstructure" ) @@ -68,7 +68,7 @@ func (m *mdnsRegistry) Register(service *registry.Service, opts ...registry.Regi return err } - srv, err := mdns.NewServer(&mdns.Config{Zone: s}) + srv, err := mdns.NewServer(&mdns.Config{Zone: &mdns.DNSSDService{s}}) if err != nil { return err }