tls fix
This commit is contained in:
parent
31ce7fc48e
commit
6c290eb66b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user