mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-05 17:13:32 +08:00
Fix: disconnect normal proxy request
This commit is contained in:
parent
c0bd82d62b
commit
04927229ff
@ -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…
x
Reference in New Issue
Block a user