[tor-commits] [goptlib/master] Fix ProxyError.
dcf at torproject.org
dcf at torproject.org
Fri Mar 31 07:20:34 UTC 2017
commit 0f5cab77926a352c229bc5653d904fefd799653c
Author: David Fifield <david at bamsoftware.com>
Date: Fri Mar 31 00:15:45 2017 -0700
Fix ProxyError.
It would always panic with a the message
keyword "PROXY-ERROR %s\n" contains forbidden bytes
---
pt.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pt.go b/pt.go
index 8cd5ff9..9633254 100644
--- a/pt.go
+++ b/pt.go
@@ -300,7 +300,7 @@ func SmethodError(methodName, msg string) error {
// Emit a PROXY-ERROR line with explanation text. Returns a representation of
// the error.
func ProxyError(msg string) error {
- return doError("PROXY-ERROR %s\n", msg)
+ return doError("PROXY-ERROR", msg)
}
// Emit a CMETHOD line. socks must be "socks4" or "socks5". Call this once for
More information about the tor-commits
mailing list