mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 02:16:10 -05:00
c78ee5aac7
* ⬆ Update to Go 1.17 * 🏗 Update workflows and add windows-arm64 * 💾 Update generated files * 📛 Update not-so-friendly filenames
17 lines
307 B
Go
17 lines
307 B
Go
//go:build android
|
|
// +build android
|
|
|
|
package internet
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestDNSResolver(t *testing.T) {
|
|
resolver := NewDNSResolver()
|
|
if ips, err := resolver.LookupIP(context.Background(), "ip", "www.google.com"); err != nil {
|
|
t.Errorf("failed to lookupIP, %v, %v", ips, err)
|
|
}
|
|
}
|