Home | History | Annotate | Download | only in net

Lines Matching refs:addrs

208 	addrs, err := r.LookupIPAddr(context.Background(), "foo.onion")
212 if len(addrs) > 0 {
213 t.Errorf("unexpected addresses: %v", addrs)
529 addrs, err := r.LookupIPAddr(context.Background(), tt.name)
536 if len(addrs) == 0 {
539 if !tt.a && !tt.aaaa && len(addrs) > 0 {
540 t.Errorf("unexpected %v for %s", addrs, tt.name)
542 for _, addr := range addrs {
592 addrs, _, err := r.goLookupIPCNAMEOrder(context.Background(), "thor", order) // entry is in "testdata/hosts"
597 if len(addrs) != 1 {
598 t.Errorf("%s: expected exactly one result, but got %v", name, addrs)
601 if got, want := addrs[0].String(), "127.1.1.1"; got != want {
713 addrs, err := r.LookupIPAddr(context.Background(), "www.golang.org")
718 if got := len(addrs); got != 1 {
722 if got, want := addrs[0].String(), "192.0.2.1"; got != want {