From 33dfddc91e39d681629e9dc9187345eb4b63c4e9 Mon Sep 17 00:00:00 2001 From: Dingjun Date: Sat, 8 Apr 2017 11:24:56 +0800 Subject: [PATCH] fix error context --- obfssh/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obfssh/proxy.go b/obfssh/proxy.go index 9fc47d3..8746623 100644 --- a/obfssh/proxy.go +++ b/obfssh/proxy.go @@ -83,7 +83,7 @@ func httpProxyHandshake(c net.Conn, host string, port int) error { } if statusLine[0:4] != "HTTP" { - return err + return fmt.Errorf("not http reply") } status := strings.Fields(statusLine)[1]