aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/bittorrent.c
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2020-01-05 18:25:44 +0100
committerLuca Deri <deri@ntop.org>2020-01-05 18:25:44 +0100
commitef16591f3f9d2673dfacf1c715c2e10dcd1da248 (patch)
treebabb2c57fec88d3942a2f13a911f569af33f9ac3 /src/lib/protocols/bittorrent.c
parent29dd45838da84bfa43da615d7624373392861751 (diff)
parent798bb6e2e113f10d9b710179553e4cef23222a61 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into dev
Diffstat (limited to 'src/lib/protocols/bittorrent.c')
-rw-r--r--src/lib/protocols/bittorrent.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/protocols/bittorrent.c b/src/lib/protocols/bittorrent.c
index 5ed0d311a..a1ade79b2 100644
--- a/src/lib/protocols/bittorrent.c
+++ b/src/lib/protocols/bittorrent.c
@@ -72,9 +72,7 @@ static void ndpi_add_connection_as_bittorrent(struct ndpi_detection_module_struc
} else
bt_hash = (const char*)&flow->packet.payload[28];
- if(!ndpi_struct->disable_metadata_export) {
- if(bt_hash) memcpy(flow->protos.bittorrent.hash, bt_hash, 20);
- }
+ if(bt_hash) memcpy(flow->protos.bittorrent.hash, bt_hash, 20);
}
ndpi_int_change_protocol(ndpi_struct, flow, NDPI_PROTOCOL_BITTORRENT, NDPI_PROTOCOL_UNKNOWN);