Skip to content

Commit

Permalink
fix: enhance ping callback to skip server ping in local auth mode
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Jan 7, 2025
1 parent bd21c80 commit 445a1a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ping_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ make_captive_domains_query_responsable(void)
static void
ping_work_cb(evutil_socket_t fd, short event, void *arg) {
make_captive_domains_query_responsable();

if (is_local_auth_mode()) {
debug(LOG_DEBUG, "auth mode is local, no need to ping auth server");
mark_auth_online();
return;
}

struct wd_request_context *request_ctx = (struct wd_request_context *)arg;
Expand Down

0 comments on commit 445a1a9

Please sign in to comment.