Skip to content

Commit

Permalink
bounce_gen: warn about possible delays during daemon startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jengelh committed Sep 24, 2024
1 parent 6656d56 commit 89fc985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bounce_gen.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: 2022-2023 grommunio GmbH
// SPDX-FileCopyrightText: 2022-2024 grommunio GmbH
// This file is part of Gromox.
#include <dirent.h>
#include <map>
Expand Down Expand Up @@ -99,6 +99,8 @@ errno_t bounce_gen_init(const char *cfgdir, const char *datadir,
}
static constexpr struct addrinfo hints = {AI_CANONNAME};
struct addrinfo *aires = nullptr;
mlog(LV_DEBUG, "bounce_gen: group %s: DNS lookup for \"%s\"...",
bounce_grp, buf);
auto err = getaddrinfo(buf, nullptr, &hints, &aires);
if (err != 0) {
mlog(LV_ERR, "getaddrinfo %s: %s", buf, gai_strerror(err));
Expand Down

0 comments on commit 89fc985

Please sign in to comment.