From 92a55b4f9c71e1ae0313cc6c4d8a0f84712ce9ed Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Mon, 19 Sep 2022 17:35:19 -0500 Subject: [PATCH] Only listen on localhost for the jit validator --- validator/jit_machine.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/validator/jit_machine.go b/validator/jit_machine.go index 48082ea8d0..d13cbb521c 100644 --- a/validator/jit_machine.go +++ b/validator/jit_machine.go @@ -67,7 +67,9 @@ func (machine *JitMachine) prove( state := GoGlobalState{} timeout := time.Now().Add(60 * time.Second) - tcp, err := net.ListenTCP("tcp4", &net.TCPAddr{}) + tcp, err := net.ListenTCP("tcp4", &net.TCPAddr{ + IP: []byte{127, 0, 0, 1}, + }) if err != nil { return state, err }