1
0
mirror of https://github.com/golang/go synced 2024-09-25 11:20:13 -06:00

runtime/race: stop listening to external network addresses

This makes the OS X firewall box pop up.
Not run during all.bash so hasn't been noticed before.

Change-Id: I78feb4fd3e1d3c983ae3419085048831c04de3da
Reviewed-on: https://go-review.googlesource.com/9401
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
Russ Cox 2015-04-27 16:18:35 -04:00
parent 7c7cd69591
commit f774e6a1f8

View File

@ -49,7 +49,7 @@ func TestNoRaceIOHttp(t *testing.T) {
fmt.Fprintf(w, "test")
x = 42
})
err := http.ListenAndServe(":23651", nil)
err := http.ListenAndServe("127.0.0.1:23651", nil)
if err != nil {
t.Fatalf("http.ListenAndServe: %v", err)
}