mirror of https://github.com/ehang-io/nps
Update https.go
parent
147a1b2714
commit
64c617d7e7
|
@ -177,7 +177,7 @@ func GetServerNameFromClientHello(c net.Conn) (string, []byte) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// build https request
|
// build https request
|
||||||
func buildHttpsRequest(hostName string, c) *http.Request {
|
func buildHttpsRequest(hostName string, c net.Conn) *http.Request {
|
||||||
r := new(http.Request)
|
r := new(http.Request)
|
||||||
r.RequestURI = "/"
|
r.RequestURI = "/"
|
||||||
r.URL = new(url.URL)
|
r.URL = new(url.URL)
|
||||||
|
|
Loading…
Reference in New Issue