mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 09:18:34 +00:00
UDS: Use UnixListenerWrapper & UnixConnWrapper (#4413)
Fixes https://github.com/XTLS/Xray-core/issues/4411 --------- Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
parent
52381a3c03
commit
b38a53e629
2 changed files with 13 additions and 13 deletions
|
@ -547,8 +547,8 @@ func UnwrapRawConn(conn net.Conn) (net.Conn, stats.Counter, stats.Counter) {
|
|||
conn = pc.Raw()
|
||||
// 8192 > 4096, there is no need to process pc's bufReader
|
||||
}
|
||||
if uc, ok := conn.(*internet.UDSWrapperConn); ok {
|
||||
conn = uc.Conn
|
||||
if uc, ok := conn.(*internet.UnixConnWrapper); ok {
|
||||
conn = uc.UnixConn
|
||||
}
|
||||
}
|
||||
return conn, readCounter, writerCounter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue