mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
fix(discovery): fix daemon not starting due to mdns startup failure (#8704)
This commit is contained in:
parent
83b3ec4a61
commit
be3dbc2bd2
@ -42,7 +42,8 @@ func SetupDiscovery(useMdns bool, mdnsInterval int) func(helpers.MetricsCtx, fx.
|
||||
if useMdns {
|
||||
service := mdns.NewMdnsService(host, mdns.ServiceName, handler)
|
||||
if err := service.Start(); err != nil {
|
||||
return err
|
||||
log.Error("error starting mdns service: ", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
if mdnsInterval == 0 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user