Commit a0a7768b authored by Russ Cox's avatar Russ Cox

net: comment pedantry

Fixes #1167.

R=r, r2
CC=golang-dev
https://golang.org/cl/2290044
parent 8599a837
......@@ -192,14 +192,7 @@ var dnserr os.Error
func loadConfig() { cfg, dnserr = dnsReadConfig() }
func isDomainName(s string) bool {
// Requirements on DNS name:
// * must not be empty.
// * must be alphanumeric plus - and .
// * each of the dot-separated elements must begin
// and end with a letter or digit.
// RFC 1035 required the element to begin with a letter,
// but RFC 3696 says this has been relaxed to allow digits too.
// still, there must be a letter somewhere in the entire name.
// See RFC 1035, RFC 3696.
if len(s) == 0 {
return false
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment