Compare commits

...

1 Commits

Author SHA1 Message Date
3b73091cfb consul fixes 2023-07-29 15:11:22 +02:00

View File

@@ -61,7 +61,12 @@ func (s *Service) GetID() string {
}
func (s *Service) GetFullAddr() string {
return fmt.Sprintf("https://%s:%d/", s.domain, s.port)
isTLS := s.port == 443
proto := "http"
if isTLS {
proto = "https"
}
return fmt.Sprintf("%s://%s:%d/", proto, s.domain, s.port)
}
func (s *Service) Register() error {