[goptlib/master] Put the non-IPv4 zero bytes comment on an exposed function too.

9 Dec
2013
9 Dec
'13
2:49 a.m.
commit 6f5f941eaaac295edab1ab158aa825087cba46ba Author: David Fifield <david@bamsoftware.com> Date: Sun Dec 8 11:01:50 2013 -0800 Put the non-IPv4 zero bytes comment on an exposed function too. --- socks.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/socks.go b/socks.go index 583b999..d33afce 100644 --- a/socks.go +++ b/socks.go @@ -33,7 +33,8 @@ type SocksConn struct { } // Send a message to the proxy client that access to the given address is -// granted. +// granted. If the IP field inside addr is not an IPv4 address, the IP portion +// of the response will be four zero bytes. func (conn *SocksConn) Grant(addr *net.TCPAddr) error { return sendSocks4aResponseGranted(conn, addr) }
4170
Age (days ago)
4170
Last active (days ago)
0 comments
1 participants
participants (1)
-
dcf@torproject.org