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
fix: resolve gRPC Gateway connection issue when server address is empty (#4968)
Liu Chao3427ae75baac
diff --git a/server/router/api/v1/v1.go b/server/router/api/v1/v1.goindex 962356e96..613131adf 100644--- a/server/router/api/v1/v1.go+++ b/server/router/api/v1/v1.go@@ -67,7 +67,11 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Storefunc (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Echo) error {var target stringif len(s.Profile.UNIXSock) == 0 {- target = fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port)+ addr := s.Profile.Addr+ if addr == "" {+ addr = "localhost"+ }+ target = fmt.Sprintf("%s:%d", addr, s.Profile.Port)} else {target = fmt.Sprintf("unix:%s", s.Profile.UNIXSock)}