Fix: disconnect normal proxy request
This commit is contained in:
parent
ef2b5d306d
commit
7e7b321ff9
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ func (l *HttpListener) Address() string {
|
|||
func handleConn(conn net.Conn) {
|
||||
br := bufio.NewReader(conn)
|
||||
request, err := http.ReadRequest(br)
|
||||
if err != nil || !request.URL.IsAbs() {
|
||||
if err != nil || request.URL.Host == "" {
|
||||
conn.Close()
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue