This commit is contained in:
ginuerzh 2020-01-04 16:19:43 +08:00
parent 4d818442d7
commit 6af247b533

4
sni.go
View File

@ -75,9 +75,7 @@ func (h *sniHandler) Handle(conn net.Conn) {
conn.RemoteAddr(), conn.LocalAddr(), err)
return
}
if !req.URL.IsAbs() {
req.URL.Scheme = "http" // make sure that the URL is absolute
}
handler := &httpHandler{options: h.options}
handler.Init()
handler.handleRequest(conn, req)