Allow no password on localhost - slight changes

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