mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: respect supplied listening address (#3338)
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user