IPv6 support for the backend

  Still not listening on IPv6, would need help.
Adding isipv6 to $param broke bool_array_search

 Added 'strict' optional parameter.
 See comment in code.