Fixes #1

Adds integer casting around the IP in CIDR check in
attempt_to_reallocate_ip.
Merge pull request #2 from Cerberus98/master

Fixes #1