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
Merge pull request #532 from Grimston/master

Allow no password on localhost - slight changes