Skip to content

Commit 1182558

Browse files
committed
fix ip to bind to
1 parent cf7a3c2 commit 1182558

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/cmd/api/app/server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func NewCommand() *cli.Command {
162162
}
163163

164164
log.Info().Msg("Starting server...")
165-
err = s.Start(config.GetConfig().Server.Mode, fmt.Sprintf("127.0.0.1:%d", config.GetConfig().Server.Port), *JobManager)
165+
err = s.Start(config.GetConfig().Server.Mode, fmt.Sprintf("%s:%d", config.GetConfig().Server.IP, config.GetConfig().Server.Port), *JobManager)
166166
if err != nil && !errors.Is(err, http.ErrServerClosed) {
167167
log.Error().Msgf("unable to start server: %s", err)
168168
}

0 commit comments

Comments
 (0)