From b28a1ef1f0755635655473ade397bbe6a9794d68 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sun, 11 Sep 2022 18:12:41 +0300 Subject: [PATCH] Turn off DNS query cache --- app/src/main/cpp/baresip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index 265f88f7..6bf03da3 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -450,8 +450,8 @@ Java_com_tutpro_baresip_BaresipService_baresipStart(JNIEnv *env, jobject instanc goto out; } - // Turn off DNS client cache (should be OK with async workers) - // dnsc_cache_max(net_dnsc(baresip_network()), 0); + // Turn off DNS client cache (should be OK with async workers, but it not) + dnsc_cache_max(net_dnsc(baresip_network()), 0); if (strlen(addrs) > 0) { char* addr_list = (char*)malloc(strlen(addrs));