Skip to content

Commit

Permalink
fix: HTTP APIs enablement flags (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
varas authored Jun 29, 2021
1 parent e494cf2 commit 5b6a40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/newrelic-infra/newrelic-infra.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func initializeAgentAndRun(c *config.Config, logFwCfg config.LogForward) error {
aslog.WithError(err).Error("invalid startup_connection_timeout value, cannot run status server")
} else {
rep := status.NewReporter(agt.Context.Ctx, rlog, c.StatusEndpoints, timeoutD, transport, agt.Context.AgentIdnOrEmpty, c.License, userAgent)
apiCfg := httpapi.NewConfig(c.StatusServerEnabled, c.HTTPServerHost, c.HTTPServerPort, c.HTTPServerEnabled, c.StatusServerPort)
apiCfg := httpapi.NewConfig(c.HTTPServerEnabled, c.HTTPServerHost, c.HTTPServerPort, c.StatusServerEnabled, c.StatusServerPort)
apiSrv, err := httpapi.NewServer(apiCfg, rep, integrationEmitter)
if err != nil {
aslog.WithError(err).Error("cannot run api server")
Expand Down

0 comments on commit 5b6a40e

Please sign in to comment.