diff options
Diffstat (limited to 'src/lib/net/dnsclient.go')
-rw-r--r-- | src/lib/net/dnsclient.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/net/dnsclient.go b/src/lib/net/dnsclient.go index 362295440..67af9b752 100644 --- a/src/lib/net/dnsclient.go +++ b/src/lib/net/dnsclient.go @@ -184,7 +184,7 @@ export func LookupHost(name string) (name1 string, addrs []string, err *os.Error // If name is rooted (trailing dot) or has enough dots, // try it by itself first. rooted := len(name) > 0 && name[len(name)-1] == '.'; - if rooted || strings.count(name, ".") >= cfg.ndots { + if rooted || strings.Count(name, ".") >= cfg.ndots { rname := name; if !rooted { rname += "."; |