mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 16:57:08 +00:00
chore: anytls protocol version 2 (#1936)
This commit is contained in:
@@ -174,6 +174,12 @@ func (l *Listener) HandleConn(conn net.Conn, h *sing.ListenerHandler) {
|
||||
return
|
||||
}
|
||||
|
||||
// It seems that mihomo does not implement a connection error reporting mechanism, so we report success directly.
|
||||
err = stream.HandshakeSuccess()
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
h.NewConnection(ctx, stream, M.Metadata{
|
||||
Source: M.SocksaddrFromNet(conn.RemoteAddr()),
|
||||
Destination: destination,
|
||||
|
||||
Reference in New Issue
Block a user