1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

fix addr listen bug

This commit is contained in:
longXboy 2021-05-31 10:59:03 +08:00
parent 63191930ed
commit 493373dc13
2 changed files with 0 additions and 2 deletions

View File

@ -130,7 +130,6 @@ func (s *Server) Endpoint() (string, error) {
if err != nil {
return "", err
}
s.address = addr
return fmt.Sprintf("grpc://%s", addr), nil
}

View File

@ -122,7 +122,6 @@ func (s *Server) Endpoint() (string, error) {
if err != nil {
return "", err
}
s.address = addr
return fmt.Sprintf("http://%s", addr), nil
}