Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 672a350f31 | |||
| c01098b672 |
@@ -91,5 +91,5 @@ func (c *HttpClient) getApiUrl(api string) string {
|
||||
apiAddr = api // default api run on 80 int port
|
||||
}
|
||||
|
||||
return "http://" + apiAddr
|
||||
return "https://" + apiAddr
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ func (s *Service) GetID() string {
|
||||
}
|
||||
|
||||
func (s *Service) GetFullAddr() string {
|
||||
return fmt.Sprintf("http://%s:%d/", s.Address, s.port)
|
||||
return fmt.Sprintf("https://%s:%d/?name=%s", s.Address, s.port, s.Name)
|
||||
}
|
||||
|
||||
func (s *Service) Register() error {
|
||||
|
||||
Reference in New Issue
Block a user