Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(335)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 6922050: code review 6922050: go.net/proxy: correctly sets IPv4 addresses in socks5 r...

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by raptium
Modified:
13 years ago
Reviewers:
rsc, mikio
CC:
golang-dev
Visibility:
Public.
go.net/proxy: correctly sets IPv4 addresses in socks5 request now net.ParseIP(host) always returns a 16-byte array, we should convert it into 4-byte array before copy it to the IP field if it is a IPv4 address.

Patch Set 1 #

Patch Set 2 : diff -r 3f49abc52b3c https://code.google.com/p/go.net #

Patch Set 3 : diff -r 3f49abc52b3c https://code.google.com/p/go.net #

Total comments: 1

Patch Set 4 : diff -r 3f49abc52b3c https://code.google.com/p/go.net #

Created: 13 years ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M proxy/socks5.go View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
Total messages: 5
|
raptium
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go.net
13 years ago (2012年12月12日 06:02:30 UTC) #1
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go.net 
Sign in to reply to this message.
raptium
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years ago (2012年12月12日 06:09:41 UTC) #2
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com),
Please take another look.
Sign in to reply to this message.
rsc
A test would be nice but I'm unfamiliar with this repo. Do we have tests ...
13 years ago (2012年12月12日 19:34:01 UTC) #3
A test would be nice but I'm unfamiliar with this repo. Do we have tests for
this package?
https://codereview.appspot.com/6922050/diff/2002/proxy/socks5.go
File proxy/socks5.go (right):
https://codereview.appspot.com/6922050/diff/2002/proxy/socks5.go#newcode147
proxy/socks5.go:147: buf = append(buf, []byte(ipv4)...)
ip = ipv4
and then the append can be done below where it used to be.
Also the []byte() conversion is not necessary (I know it was in the original).
Sign in to reply to this message.
raptium
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years ago (2012年12月13日 06:17:38 UTC) #4
Hello rsc@golang.org (cc: golang-dev@googlegroups.com),
Please take another look.
Sign in to reply to this message.
mikio
Could you please add a test. Also please change the CL description. PerseIP does return ...
13 years ago (2012年12月15日 04:48:40 UTC) #5
Could you please add a test.
Also please change the CL description.
PerseIP does return a slice, not an array.
The doc fix is in progress: https://codereview.appspot.com/6930047/ 
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /