From 655e94608316e5c1b729c0bf805fb91c68419712 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 25 Jun 2023 18:06:35 -0400 Subject: fix geoiplookup executable detection for --nettrace --- src/fnettrace/hostnames.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fnettrace/hostnames.c b/src/fnettrace/hostnames.c index 878a67123..20c83803f 100644 --- a/src/fnettrace/hostnames.c +++ b/src/fnettrace/hostnames.c @@ -28,6 +28,10 @@ static char buf[MAXBUF]; char *retrieve_hostname(uint32_t ip) { if (geoip_not_found) return NULL; + if (access("/usr/bin/geoiplookup", X_OK)) { + geoip_not_found = 1; + return NULL; + } geoip_calls++; char *rv = NULL; -- cgit v1.2.3-54-g00ecf