consul registration update
This commit is contained in:
parent
2c797164e0
commit
eb1e8a9cb0
@ -144,11 +144,10 @@ func (s *Service) Connect() (*connect.Service, error) {
|
||||
// })
|
||||
svc, err := connect.NewService(s.Name, s.client)
|
||||
s.connect = svc
|
||||
cnf := svc.ServerTLSConfig()
|
||||
fmt.Printf("CONNECT SERVER:: %s CONFIG:: %v\n", s.Name, cnf)
|
||||
for k, c := range cnf.Certificates {
|
||||
fmt.Printf("CONNECT CERT %d: %v", k, c)
|
||||
}
|
||||
fmt.Printf("CONNECT SERVER:: %s CERTS:: %v\n", s.Name, svc.ServerTLSConfig())
|
||||
// for k, c := range cnf.Certificates {
|
||||
// fmt.Printf("CONNECT CERT %d: %v", k, c)
|
||||
// }
|
||||
|
||||
return svc, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user