mirror of
https://github.com/golang/go
synced 2024-11-19 21:04:43 -07:00
net: default to 127.0.0.1, not localhost, in TestICMP
If localhost resolves to ::1, the IPv4-only test fails. R=rsc, r2 CC=golang-dev https://golang.org/cl/4444084
This commit is contained in:
parent
6876ad37f3
commit
12cf1699e7
@ -60,7 +60,8 @@ func parsePingReply(p []byte) (id, seq int) {
|
||||
}
|
||||
|
||||
var srchost = flag.String("srchost", "", "Source of the ICMP ECHO request")
|
||||
var dsthost = flag.String("dsthost", "localhost", "Destination for the ICMP ECHO request")
|
||||
// 127.0.0.1 because this is an IPv4-specific test.
|
||||
var dsthost = flag.String("dsthost", "127.0.0.1", "Destination for the ICMP ECHO request")
|
||||
|
||||
// test (raw) IP socket using ICMP
|
||||
func TestICMP(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user