[tor-commits] [goptlib/master] fmt

dcf at torproject.org dcf at torproject.org
Wed Dec 11 08:06:33 UTC 2013


commit 16617bac2950f6b9aa4c383dee34a093e159a83f
Author: David Fifield <david at bamsoftware.com>
Date:   Wed Dec 11 00:06:29 2013 -0800

    fmt
---
 pt.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pt.go b/pt.go
index 313a0c9..eae604d 100644
--- a/pt.go
+++ b/pt.go
@@ -559,7 +559,7 @@ func ServerSetup(methodNames []string) (info ServerInfo, err error) {
 	}
 
 	// Need either OrAddr or ExtendedOrAddr.
-	if (info.OrAddr == nil && (info.ExtendedOrAddr == nil || info.AuthCookie == nil)) {
+	if info.OrAddr == nil && (info.ExtendedOrAddr == nil || info.AuthCookie == nil) {
 		err = envError("need TOR_PT_ORPORT or TOR_PT_EXTENDED_SERVER_PORT environment variable")
 		return
 	}



More information about the tor-commits mailing list