First of all, I am not asking if it is a good idea to use Tor for sites like The Pirate Bay. I know that it will slow down the network for everyone else (and has been asked previously).
I am developing a C++ application that uses a DHT server as the backend. If I use DTLS and route the traffic through Tor, will that be secure and work with Whonix? I know that by default Whonix blocks DHT traffic and requires a VPN for DHT to work. I am also using the rasterbar libtorrent libary.
Thanks