Skip to content

Commit

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

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 13, 2020
1 parent 03b4227 commit c8579db
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 c8579db

Please sign in to comment.