feat: fix register bug (#1791)
This commit is contained in:
parent
c817f29d6e
commit
f99b436ec2
@ -304,7 +304,7 @@ func (m *mdnsRegistry) Register(service *Service, opts ...RegisterOption) error
|
|||||||
srv.Nodes = append(srv.Nodes, node)
|
srv.Nodes = append(srv.Nodes, node)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := m.Register(service, append(opts, RegisterDomain(m.globalDomain))...); err != nil {
|
if err := m.Register(&srv, append(opts, RegisterDomain(m.globalDomain))...); err != nil {
|
||||||
gerr = err
|
gerr = err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user