register fix 2

This commit is contained in:
Piotr Biernat 2023-07-06 19:30:00 +02:00
parent 95584eb407
commit a9b73a6536

View File

@ -119,10 +119,10 @@ func (s *Service) Unregister() error {
func (s *Service) Connect() (*connect.Service, error) {
// srvName := s.Name
srvName := s.Name
fmt.Printf("CONNECT SERVER: %s\n", srvName)
svc, err := connect.NewService(srvName, s.client)
s.connect = svc
cnf := svc.ServerTLSConfig()
fmt.Printf("CONNECT SERVER:: %s CONFIG:: %v\n", srvName, cnf)
for k, c := range cnf.Certificates {
fmt.Printf("CONNECT CERT %d: %v", k, c)
}