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

dcf at torproject.org dcf at torproject.org
Mon Dec 9 02:49:51 UTC 2013


commit 6f5f941eaaac295edab1ab158aa825087cba46ba
Author: David Fifield <david at 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)
 }





More information about the tor-commits mailing list