]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we don't need host name lookups
authorAlan T. DeKok <aland@freeradius.org>
Wed, 17 Nov 2021 17:26:20 +0000 (12:26 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 17 Nov 2021 17:26:20 +0000 (12:26 -0500)
src/bin/unit_test_attribute.c

index 97c89728018a3d51caa1925ea0075684d7f9bfb4..59165f97a6fad6c1bfe838ffab4e289d61845efb 100644 (file)
@@ -3473,6 +3473,13 @@ int main(int argc, char *argv[])
                EXIT_WITH_FAILURE;
        }
 
+       /*
+        *      Disable hostname lookups, so we don't produce spurious DNS
+        *      queries, and there's no chance of spurious failures if
+        *      it takes a long time to get a response.
+        */
+       fr_hostname_lookups = fr_reverse_lookups = false;
+
        /*
         *      Read tests from stdin
         */