constraints stores network order; we want to return host order

This commit is contained in:
Eric 2013-10-03 02:48:46 -04:00
parent 408e46d939
commit 3aa0f27b51

View File

@ -26,7 +26,7 @@
static constraint_t *constraint = NULL;
uint32_t blacklist_lookup_index(uint64_t index) {
return constraint_lookup_index(constraint, index, ADDR_ALLOWED);
return ntohl(constraint_lookup_index(constraint, index, ADDR_ALLOWED));
}
// check whether a single IP address is allowed to be scanned.