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

[tor-commits] [goptlib/master] getServerBindAddrs returns a slice, not a map.



commit 2cde041c183302abab0f94ea07e9cb4025731076
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Nov 12 23:15:35 2013 -0800

    getServerBindAddrs returns a slice, not a map.
---
 pt.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pt.go b/pt.go
index fcd17b8..5d0bcfd 100644
--- a/pt.go
+++ b/pt.go
@@ -298,7 +298,7 @@ func filterBindAddrs(addrs []BindAddr, methodNames []string) []BindAddr {
 	return result
 }
 
-// Return a map from method names to bind addresses. The map is the contents of
+// Return an array of BindAddrs, those being the contents of
 // TOR_PT_SERVER_BINDADDR, with keys filtered by TOR_PT_SERVER_TRANSPORTS, and
 // further filtered by the methods in methodNames.
 func getServerBindAddrs(methodNames []string) ([]BindAddr, error) {



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