Fixes isrequired

The isrequired flag did not support IP6 localhost, nor did it allow
192.168 addresses, normally used for local private networks. Now it does