Enable restricting connections to specific IPs. Fixes #289