Add flow dispatcher

This commit is contained in:
世界 2026-07-06 11:49:18 +08:00
parent 47bdde06c3
commit ed63adda33
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
27 changed files with 2469 additions and 963 deletions

View file

@ -4,7 +4,6 @@ package tun
import (
"context"
"errors"
"net"
"os"
"sync"
@ -74,7 +73,7 @@ func (c *gLazyConn) HandshakeFailure(err error) error {
if c.handshakeDone {
return os.ErrInvalid
}
c.request.Complete(!errors.Is(err, ErrDrop))
c.request.Complete(true)
c.handshakeDone = true
c.handshakeErr = err
return nil