Allow dht bootstrap nodes to be added when dht is off.

This commit is contained in:
rakshasa
2026-03-02 08:47:44 +01:00
committed by Jari Sundell
parent f05a2ae520
commit 5dfb2ae938
2 changed files with 3 additions and 6 deletions
-3
View File
@@ -28,9 +28,6 @@ tracker_set_enabled(torrent::tracker::Tracker* tracker, bool state) {
torrent::Object
apply_dht_add_node(const std::string& arg) {
if (!torrent::runtime::network_manager()->is_dht_valid())
throw torrent::input_error("DHT not enabled.");
int port;
char dummy;
char host[1024];