mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-10 06:08:41 +00:00
Try to fix UDP error
This commit is contained in:
parent
7c240e8630
commit
4fc284a8e9
3 changed files with 17 additions and 4 deletions
|
@ -154,7 +154,7 @@ func (s *clientSessions) openConnection(destAddr net.Addr, config *Config, tlsCo
|
|||
KeepAlive: true,
|
||||
}
|
||||
|
||||
conn, err := wrapSysConn(rawConn, config)
|
||||
conn, err := wrapSysConn(rawConn.(*net.UDPConn), config)
|
||||
if err != nil {
|
||||
rawConn.Close()
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue