Merge pull request #181 from Cerberus98/master

Fixes #169
Merge branch 'master' of github.com:jkoelker/quark
Fixes #1

Adds integer casting around the IP in CIDR check in
attempt_to_reallocate_ip.