[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [goptlib/master] Fix ProxyError.
commit 0f5cab77926a352c229bc5653d904fefd799653c
Author: David Fifield <david@xxxxxxxxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits