strategy: write once in proxy check

This commit is contained in:
nadoo 2018-01-29 23:33:53 +08:00
parent 98c90f33fd
commit 6909a4a372

View File

@ -121,8 +121,7 @@ func (rr *rrDialer) checkDialer(idx int) {
continue continue
} }
c.Write([]byte("GET / HTTP/1.0")) c.Write([]byte("GET / HTTP/1.0\r\n\r\n"))
c.Write([]byte("\r\n\r\n"))
_, err = io.ReadFull(c, buf) _, err = io.ReadFull(c, buf)
if err != nil { if err != nil {