Skip to content

Commit 8943d91

Browse files
committed
Only listen on localhost
1 parent f8ed045 commit 8943d91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/gateway/endpoint_picker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type extProcClientFactory func(target string) (extprocv3.ExternalProcessorClient
3232
// endpointPickerServer starts an HTTP server on the given port with the provided handler.
3333
func endpointPickerServer(handler http.Handler) error {
3434
server := &http.Server{
35-
Addr: fmt.Sprintf(":%d", defaultPort),
35+
Addr: fmt.Sprintf("127.0.0.1:%d", defaultPort),
3636
Handler: handler,
3737
ReadHeaderTimeout: 10 * time.Second,
3838
}

0 commit comments

Comments
 (0)