Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1104)

Unified Diff: src/pkg/net/dnsclient.go

Issue 152048: code review 152048: net: fix dns bug reported on irc. (Closed)
Patch Set: code review 152048: net: fix dns bug reported on irc. Created 14 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pkg/net/net_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/net/dnsclient.go
===================================================================
--- a/src/pkg/net/dnsclient.go
+++ b/src/pkg/net/dnsclient.go
@@ -268,5 +268,16 @@
return;
}
}
+
+ // Last ditch effort: try unsuffixed.
+ rname := name;
+ if !rooted {
+ rname += "."
+ }
+ addrs, err = tryOneName(cfg, rname);
+ if err == nil {
+ cname = rname;
+ return;
+ }
return;
}
« no previous file with comments | « no previous file | src/pkg/net/net_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b