alert-json did not work if --enable-ipv6 was present (Redmine issue 620). Fixed