diff --git a/include/libtorrent/alert.hpp b/include/libtorrent/alert.hpp index 3ea15d43d..06effbf15 100644 --- a/include/libtorrent/alert.hpp +++ b/include/libtorrent/alert.hpp @@ -192,6 +192,9 @@ namespace libtorrent { // enables dht_log_alert, debug logging for the DHT dht_log_notification = 0x20000, + // enable events from pure dht operations not related to torrents + dht_operation_notification = 0x40000, + // The full bitmask, representing all available categories. // // since the enum is signed, make sure this isn't diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 07b166ad8..cff32a15f 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -2362,7 +2362,7 @@ namespace libtorrent , sha1_hash const& ih , std::vector const& v); - const static int static_category = alert::dht_notification; + const static int static_category = alert::dht_operation_notification; TORRENT_DEFINE_ALERT(dht_get_peers_reply_alert, 87) virtual std::string message() const;