FIX: Wild IP bug.
tests for it
Merge pull request #824 from xenolog/wild_ip_fix

FIX: Wild IP bug.