chore: respect supplied listening address (#3338)

This commit is contained in:
Lincoln Nogueira
2024-05-10 19:50:22 -03:00
committed by GitHub
parent f30599fbd2
commit f45f673aec
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Store
func (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Echo) error {
conn, err := grpc.DialContext(
ctx,
fmt.Sprintf(":%d", s.Profile.Port),
fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port),
grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024)),
)