Diagnostics: Fix example command

The example command to fix trac sync acl hooks is incorect. The example
suggested to change the option 'acl_hooks', but it should be 'acl_hook'.
Support IPv6 when generating ACL

socket.getaddrinfo() does not try to resolve for IPv6 addresses automatically.
Force it by calling it with the AF_INET6 type.