Commit 479ad9aa authored by ginuerzh's avatar ginuerzh

fix sni test

parent 6af247b5
......@@ -56,7 +56,7 @@ func sniRoundtrip(client *Client, server *Server, targetURL string, data []byte)
if err != nil {
return
}
if err = req.Write(conn); err != nil {
if err = req.WriteProxy(conn); err != nil {
return
}
resp, err := http.ReadResponse(bufio.NewReader(conn), req)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment