mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
Fix: disconnect normal proxy request
This commit is contained in:
parent
ef2b5d306d
commit
7e7b321ff9
|
@ -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 New Issue
Block a user