mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-04-25 04:38:04 +08:00
fix: reject's dial warning
This commit is contained in:
parent
f565edd76d
commit
efbde4a179
@ -53,9 +53,6 @@ func (rw *nopConn) Read(b []byte) (int, error) {
|
||||
}
|
||||
|
||||
func (rw *nopConn) Write(b []byte) (int, error) {
|
||||
if len(b) == 0 {
|
||||
return 0, nil
|
||||
}
|
||||
return 0, io.EOF
|
||||
}
|
||||
|
||||
|
@ -410,6 +410,11 @@ func handleTCPConn(connCtx C.ConnContext) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for _, chain := range remoteConn.Chains() {
|
||||
if chain == "REJECT" {
|
||||
return remoteConn, nil
|
||||
}
|
||||
}
|
||||
peekMutex.Lock()
|
||||
defer peekMutex.Unlock()
|
||||
peekBytes, _ = conn.Peek(conn.Buffered())
|
||||
|
Loading…
Reference in New Issue
Block a user