static void dns_handler(int dns_err, const struct sa *srv, void *arg)
{
	struct lookup_entry *lent = arg;
	struct sa turn_srv;

	re_printf("DNS lookup for: %s err=%d\n", lent->host, dns_err);
	if (dns_err)
		goto out;

	sa_cpy(&turn_srv, srv);
	sa_set_port(&turn_srv, lent->port);

	re_printf("DNS lookup success: %s -> %J(proto=%s secure=%d)\n",
		  lent->host, &turn_srv, net_proto2name(lent->proto),
		  lent->secure);
	
	start_netprobe(&turn_srv, lent->proto, lent->secure,
		       lent->turn.username, lent->turn.credential);
 out:
	mem_deref(lent);
}
static void dns_handler(int dns_err, const struct sa *srv, void *arg)
{
	struct lookup_entry *lent = arg;
	struct sa turn_srv;

	re_printf("DNS lookup for: %s err=%d\n", lent->host, dns_err);
	if (dns_err)
		goto out;

	sa_cpy(&turn_srv, srv);
	sa_set_port(&turn_srv, lent->port);

	re_printf("DNS lookup success: %s -> %J(proto=%s secure=%d)\n",
		  lent->host, &turn_srv, net_proto2name(lent->proto),
		  lent->secure);
	
	start_netprobe(&turn_srv, lent->proto, lent->secure,
		       lent->turn.username, lent->turn.credential);
 out:
	mem_deref(lent);
}