From c02357057cc3567e1754b1ad5296b31fb6c4ef30 Mon Sep 17 00:00:00 2001 From: Heikki Hannikainen Date: Tue, 13 Aug 2019 13:22:47 +0000 Subject: [PATCH] Disable version-over-DNS callback for now, the responder is not running. --- src/aprsc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/aprsc.c b/src/aprsc.c index 12ba4ed..99d0eec 100644 --- a/src/aprsc.c +++ b/src/aprsc.c @@ -616,12 +616,7 @@ static void generate_instance_id(void) } /* - * Preload resolver libraries before performing a chroot, - * so that we won't need copies of the .so files within the - * chroot. - * - * This is done by doing a DNS lookup which "accidentally" - * phones home with the version information. + * DNS lookup which phones home with version information. * * Tin foil hats off. Version information and instance statistics * make developers happy. @@ -629,6 +624,7 @@ static void generate_instance_id(void) void version_report(const char *state) { +#ifdef VERSION_REPORT_OVER_DNS struct addrinfo hints; struct addrinfo *ai; char v[80]; @@ -672,6 +668,7 @@ void version_report(const char *state) hlog(LOG_DEBUG, "DNS lookup of aprsc.he.fi failed: %s", gai_strerror(i)); if (ai) freeaddrinfo(ai); +#endif } /*