Skip to content

Commit

Permalink
fix: remove captive domains when internet is available
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <[email protected]>
  • Loading branch information
liudf0716 committed Jan 13, 2025
1 parent 6c5e39f commit b34514e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tls_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "safe.h"
#include "wd_client.h"
#include "http.h"
#include "ping_thread.h"

#define DNS_RESOLV_CONF "/etc/resolv.conf"

Expand Down Expand Up @@ -99,6 +100,7 @@ check_internet_available_cb(int errcode, struct evutil_addrinfo *addr, void *ptr
debug (LOG_DEBUG, "Internet is available, mark online !\n");
mark_online();
evutil_freeaddrinfo(addr);
remove_captive_domains();
}
}
}
Expand Down

0 comments on commit b34514e

Please sign in to comment.