Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
net
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
net
Commits
6440e890
Commit
6440e890
authored
Feb 06, 2013
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go.net/proxy: make use of constants
R=golang-dev, dave CC=golang-dev
https://golang.org/cl/7299056
parent
1509ba55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
socks5.go
proxy/socks5.go
+2
-2
No files found.
proxy/socks5.go
View file @
6440e890
...
...
@@ -175,9 +175,9 @@ func (s *socks5) Dial(network, addr string) (net.Conn, error) {
bytesToDiscard
:=
0
switch
buf
[
3
]
{
case
socks5IP4
:
bytesToDiscard
=
4
bytesToDiscard
=
net
.
IPv4len
case
socks5IP6
:
bytesToDiscard
=
16
bytesToDiscard
=
net
.
IPv6len
case
socks5Domain
:
_
,
err
:=
io
.
ReadFull
(
conn
,
buf
[
:
1
])
if
err
!=
nil
{
...
...
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