Skip to content

Commit

Permalink
Merge pull request #80 from lixin9311/shadow-org
Browse files Browse the repository at this point in the history
Better var naming
  • Loading branch information
riobard authored Nov 28, 2017
2 parents 87b55c9 + 4da41b4 commit 90a5b4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socks/socks.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ func Handshake(rw io.ReadWriter) (Addr, error) {
if _, err := io.ReadFull(rw, buf[:3]); err != nil {
return nil, err
}
buf1 := buf[1]
cmd := buf[1]
addr, err := readAddr(rw, buf)
if err != nil {
return nil, err
}
switch buf1 {
switch cmd {
case CmdConnect:
_, err = rw.Write([]byte{5, 0, 0, 1, 0, 0, 0, 0, 0, 0}) // SOCKS v5, reply succeeded
case CmdUDPAssociate:
Expand Down

0 comments on commit 90a5b4a

Please sign in to comment.