Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
a0a7768b
Commit
a0a7768b
authored
Oct 06, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: comment pedantry
Fixes #1167. R=r, r2 CC=golang-dev
https://golang.org/cl/2290044
parent
8599a837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
dnsclient.go
src/pkg/net/dnsclient.go
+1
-8
No files found.
src/pkg/net/dnsclient.go
View file @
a0a7768b
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment