[tor-commits] [flashproxy/master] Provide methodName to ConnectOr in doc example.

dcf at torproject.org dcf at torproject.org
Tue Aug 27 22:36:47 UTC 2013


commit deaa96bf6d44d8fc96715bebaf7c5c92f57ca9a0
Author: David Fifield <david at bamsoftware.com>
Date:   Tue Aug 27 15:36:26 2013 -0700

    Provide methodName to ConnectOr in doc example.
---
 websocket-transport/src/pt/pt.go |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/websocket-transport/src/pt/pt.go b/websocket-transport/src/pt/pt.go
index 9c6624e..6b40098 100644
--- a/websocket-transport/src/pt/pt.go
+++ b/websocket-transport/src/pt/pt.go
@@ -23,8 +23,8 @@
 // 	pt.Smethod(bindAddr.MethodName, ln.Addr())
 // }
 // pt.SmethodsDone()
-// func handler(conn net.Conn) {
-// 	or, err := pt.ConnectOr(&ptInfo, conn)
+// func handler(conn net.Conn, methodName) {
+// 	or, err := pt.ConnectOr(&ptInfo, conn, methodName)
 // 	if err != nil {
 // 		return
 // 	}



More information about the tor-commits mailing list