[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [websocket/master] Fix typos in server example.
commit cf2bb29d664de3aa45dd679607056a94cb43ed91
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date: Sat Oct 26 16:54:37 2013 -0700
Fix typos in server example.
---
src/pt/pt.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/pt/pt.go b/src/pt/pt.go
index 0994131..9ff9437 100644
--- a/src/pt/pt.go
+++ b/src/pt/pt.go
@@ -15,9 +15,9 @@
//
// import "git.torproject.org/pluggable-transports/websocket.git/src/pt"
// var ptInfo pt.ServerInfo
-// info = pt.ServerSetup([]string{"foo", "bar"})
-// for _, bindAddr := range info.BindAddrs {
-// ln, err := startListener(bindAddr.Addr)
+// ptInfo = pt.ServerSetup([]string{"foo", "bar"})
+// for _, bindAddr := range ptInfo.BindAddrs {
+// ln, err := startListener(bindAddr.Addr, bindAddr.MethodName)
// if err != nil {
// pt.SmethodError(bindAddr.MethodName, err.Error())
// continue
@@ -25,7 +25,7 @@
// pt.Smethod(bindAddr.MethodName, ln.Addr())
// }
// pt.SmethodsDone()
-// func handler(conn net.Conn, methodName) {
+// func handler(conn net.Conn, methodName string) {
// or, err := pt.ConnectOr(&ptInfo, conn, methodName)
// if err != nil {
// return
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits