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:
parent
63191930ed
commit
493373dc13
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user