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

dcf at torproject.org dcf at torproject.org
Thu Nov 14 07:00:22 UTC 2013


commit 2cde041c183302abab0f94ea07e9cb4025731076
Author: David Fifield <david at bamsoftware.com>
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) {





More information about the tor-commits mailing list