Merge from remote branch

This commit is contained in:
yaling888
2021-09-01 00:38:43 +08:00
38 changed files with 583 additions and 272 deletions

View File

@ -7,4 +7,4 @@ import (
)
//go:linkname ReadRequest net/http.readRequest
func ReadRequest(b *bufio.Reader, deleteHostHeader bool) (req *http.Request, err error)
func ReadRequest(b *bufio.Reader) (req *http.Request, err error)

View File

@ -24,7 +24,7 @@ func HandleConn(c net.Conn, in chan<- C.ConnContext, cache *cache.Cache) {
trusted := cache == nil // disable authenticate if cache is nil
for keepAlive {
request, err := ReadRequest(conn.Reader(), false)
request, err := ReadRequest(conn.Reader())
if err != nil {
break
}

View File

@ -1,3 +1,4 @@
//go:build linux && !386
// +build linux,!386
package redir

View File

@ -1,3 +1,4 @@
//go:build !darwin && !linux && !freebsd
// +build !darwin,!linux,!freebsd
package redir

View File

@ -1,3 +1,4 @@
//go:build linux
// +build linux
package tproxy

View File

@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
package tproxy

View File

@ -1,3 +1,4 @@
//go:build linux
// +build linux
package tproxy

View File

@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
package tproxy