Skip to content

Commit

Permalink
[Elastic Agent] Trust exchange endpoint must bind to 127.0.0.1 (#19861)…
Browse files Browse the repository at this point in the history
… (#19863)

Change the address bind from 0.0.0.0 (all) to 127.0.0.1.

(cherry picked from commit 64bf7fc)
  • Loading branch information
ph committed Jul 14, 2020
1 parent 94a7270 commit 3a8de3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/elastic-agent/pkg/core/plugin/service/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ func (a *Application) cleanUp() {
}

func (a *Application) startCredsListener() error {
lis, err := net.Listen("tcp", fmt.Sprintf(":%d", a.credsPort))
lis, err := net.Listen("tcp", fmt.Sprintf("127.0.0.1:%d", a.credsPort))
if err != nil {
return errors.New(err, "failed to start connection credentials listener")
}
Expand Down

0 comments on commit 3a8de3c

Please sign in to comment.