Skip to content

Commit

Permalink
chore: vlessPacketConn should wrap ThreadSafePacketConn
Browse files Browse the repository at this point in the history
  • Loading branch information
wwqgtxx committed Mar 4, 2024
1 parent e867497 commit 69bf434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/outbound/vless.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ func (v *Vless) ListenPacketOnStreamConn(ctx context.Context, c net.Conn, metada
}, M.SocksaddrFromNet(metadata.UDPAddr())),
), v), nil
}
return newPacketConn(&vlessPacketConn{Conn: c, rAddr: metadata.UDPAddr()}, v), nil
return newPacketConn(N.NewThreadSafePacketConn(&vlessPacketConn{Conn: c, rAddr: metadata.UDPAddr()}), v), nil
}

// SupportUOT implements C.ProxyAdapter
Expand Down

0 comments on commit 69bf434

Please sign in to comment.