From 6909a4a37291b8c0178ed698256c250fda8d79e4 Mon Sep 17 00:00:00 2001 From: nadoo <287492+nadoo@users.noreply.github.com> Date: Mon, 29 Jan 2018 23:33:53 +0800 Subject: [PATCH] strategy: write once in proxy check --- strategy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/strategy.go b/strategy.go index d87e841..668bee0 100644 --- a/strategy.go +++ b/strategy.go @@ -121,8 +121,7 @@ func (rr *rrDialer) checkDialer(idx int) { continue } - c.Write([]byte("GET / HTTP/1.0")) - c.Write([]byte("\r\n\r\n")) + c.Write([]byte("GET / HTTP/1.0\r\n\r\n")) _, err = io.ReadFull(c, buf) if err != nil {