Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: respect supplied listening address (#3338)
Lincoln Nogueiraf45f673aecf7
diff --git a/server/router/api/v1/v1.go b/server/router/api/v1/v1.goindex 793fb2568..b1c0e9761 100644--- a/server/router/api/v1/v1.go+++ b/server/router/api/v1/v1.go@@ -63,7 +63,7 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Storefunc (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)),)diff --git a/server/server.go b/server/server.goindex da40e10f8..21edab577 100644--- a/server/server.go+++ b/server/server.go@@ -88,7 +88,7 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store}func (s *Server) Start(ctx context.Context) error {- address := fmt.Sprintf(":%d", s.Profile.Port)+ address := fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port)listener, err := net.Listen("tcp", address)if err != nil {return errors.Wrap(err, "failed to listen")