From e835d3e8f4e366ab26e43281a9b63f2c81f0aa10 Mon Sep 17 00:00:00 2001 From: JaGoTu Date: Wed, 9 Feb 2022 17:34:53 +0100 Subject: [PATCH] Accept HTTP/1.0 when authenticating to a proxy --- rclient.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rclient.go b/rclient.go index 8ce0cf4..00721e7 100644 --- a/rclient.go +++ b/rclient.go @@ -163,7 +163,8 @@ func connectviaproxy(proxyaddr string, connectaddr string) net.Conn { //disable socket read timeouts conn.SetReadDeadline(time.Now().Add(100 * time.Hour)) - if strings.Contains(status, "HTTP/1.1 200 ") { + if (strings.Contains(status, "HTTP/1.1 200 ")) || + (strings.Contains(status, "HTTP/1.0 200 ")) { log.Print("Connected via proxy") return conn }