Try to fix UDP error

This commit is contained in:
yaotthaha-vscode authored and yuhan6665 committed 2021-12-01 12:02:27 -05:00
1 parent 7c240e8630
commit 4fc284a8e9
3 files changed
+17 -4

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
MaxIncomingUniStreams: -1,
}
conn, err := wrapSysConn(rawConn, config)
conn, err := wrapSysConn(rawConn.(*net.UDPConn), config)
if err != nil {
conn.Close()
return nil, err