Skip to content

Commit 64bf7fc

Browse files
authored
[Elastic Agent] Trust exchange endpoint must bind to 127.0.0.1 (elastic#19861)
Change the address bind from 0.0.0.0 (all) to 127.0.0.1.
1 parent 256b50d commit 64bf7fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • x-pack/elastic-agent/pkg/core/plugin/service

x-pack/elastic-agent/pkg/core/plugin/service/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ func (a *Application) cleanUp() {
305305
}
306306

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

0 commit comments

Comments
 (0)