Skip to content

Commit

Permalink
Merge pull request #1150 from OffchainLabs/jit-listen-on-localhost
Browse files Browse the repository at this point in the history
Only listen on localhost for the jit validator
  • Loading branch information
PlasmaPower authored Sep 19, 2022
2 parents c00ebc1 + 92a55b4 commit 92bc70d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion validator/jit_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 92bc70d

Please sign in to comment.