feat: fix register bug (#1791)

This commit is contained in:
Huan Huang 2020-07-03 21:38:25 +08:00 committed by GitHub
parent c817f29d6e
commit f99b436ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
} }