[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits