mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-07-05 01:24:15 +00:00
Fix unixconn wrapper
This commit is contained in:
parent
52381a3c03
commit
69b0fb6610
2 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ func (l *listenUDSWrapper) Accept() (net.Conn, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &UDSWrapperConn{Conn: conn}, nil
|
||||
return &UDSWrapperConn{UnixConn: conn.(*net.UnixConn)}, nil
|
||||
}
|
||||
|
||||
func (l *listenUDSWrapper) Close() error {
|
||||
|
@ -66,7 +66,7 @@ func (l *listenUDSWrapper) Close() error {
|
|||
}
|
||||
|
||||
type UDSWrapperConn struct {
|
||||
net.Conn
|
||||
*net.UnixConn
|
||||
}
|
||||
|
||||
func (conn *UDSWrapperConn) RemoteAddr() net.Addr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue