1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00

Use mdns-sd service

This commit is contained in:
Asim 2016-04-30 00:22:31 +01:00
parent 5b94e4672d
commit 59f1a9a07b

View File

@ -13,8 +13,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/micro/mdns"
"github.com/micro/go-micro/registry" "github.com/micro/go-micro/registry"
"github.com/micro/mdns"
hash "github.com/mitchellh/hashstructure" hash "github.com/mitchellh/hashstructure"
) )
@ -68,7 +68,7 @@ func (m *mdnsRegistry) Register(service *registry.Service, opts ...registry.Regi
return err return err
} }
srv, err := mdns.NewServer(&mdns.Config{Zone: s}) srv, err := mdns.NewServer(&mdns.Config{Zone: &mdns.DNSSDService{s}})
if err != nil { if err != nil {
return err return err
} }