[tor-commits] [goptlib/master] Comment SocksRequest members.

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


commit 96cbb3ae4e8f0252b59a31f3a26951230df78ac7
Author: David Fifield <david at bamsoftware.com>
Date:   Sat Dec 7 22:18:23 2013 -0800

    Comment SocksRequest members.
---
 socks.go |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/socks.go b/socks.go
index 6cbecc6..2ae1c5e 100644
--- a/socks.go
+++ b/socks.go
@@ -18,8 +18,10 @@ const (
 
 // SocksRequest describes a SOCKS request.
 type SocksRequest struct {
+	// The userid string sent by the client.
 	Username string
-	Target   string
+	// The endpoint requested by the client as a "host:port" string.
+	Target string
 }
 
 // SocksConn encapsulates a net.Conn and information associated with a SOCKS request.





More information about the tor-commits mailing list