From: Alan T. DeKok Date: Wed, 17 Nov 2021 17:26:20 +0000 (-0500) Subject: we don't need host name lookups X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ffd40e5ea76ab0f431ba4860473f382152fd45;p=thirdparty%2Ffreeradius-server.git we don't need host name lookups --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 97c8972801..59165f97a6 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -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 */