Compare commits

..

3 Commits

Author SHA1 Message Date
d7dc75c18f debug fix 2024-07-20 15:45:49 +02:00
c62c63249c debug fix 2024-07-20 14:44:45 +02:00
6c290eb66b tls fix 2024-07-20 14:43:47 +02:00

View File

@@ -70,9 +70,8 @@ func (s *Service) GetID() string {
} }
func (s *Service) GetFullAddr() string { func (s *Service) GetFullAddr() string {
isTLS := s.port == 443
proto := "http" proto := "http"
if isTLS { if s.tls {
proto = "https" proto = "https"
} }
return fmt.Sprintf("%s://%s:%d/", proto, s.Address, s.port) return fmt.Sprintf("%s://%s:%d/", proto, s.Address, s.port)