aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-service-resolver.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-24 08:17:22 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-24 08:17:22 +0100
commita69123887e250ede1cc83f7096f160e5b896f2d5 (patch)
treed28275c0fb6e79bd4dc8cd3d769355eeac0075da /src/util/gnunet-service-resolver.c
parent155fa591faddf4b361b728a1091d029274051dfa (diff)
downloadgnunet-a69123887e250ede1cc83f7096f160e5b896f2d5.tar.gz
gnunet-a69123887e250ede1cc83f7096f160e5b896f2d5.zip
first try raw, unexpanded name
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r--src/util/gnunet-service-resolver.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c
index 0df213588..336e35f94 100644
--- a/src/util/gnunet-service-resolver.c
+++ b/src/util/gnunet-service-resolver.c
@@ -1037,6 +1037,12 @@ process_get (const char *hostname,
1037{ 1037{
1038 char fqdn[255]; 1038 char fqdn[255];
1039 1039
1040 if (GNUNET_NO !=
1041 try_cache (hostname,
1042 record_type,
1043 client_request_id,
1044 client))
1045 return;
1040 if ( (NULL != my_domain) && 1046 if ( (NULL != my_domain) &&
1041 (NULL == strchr (hostname, 1047 (NULL == strchr (hostname,
1042 (unsigned char) '.')) && 1048 (unsigned char) '.')) &&
@@ -1152,6 +1158,9 @@ handle_get (void *cls,
1152 { 1158 {
1153 /* IP from hostname */ 1159 /* IP from hostname */
1154 hostname = GNUNET_strdup ((const char *) &msg[1]); 1160 hostname = GNUNET_strdup ((const char *) &msg[1]);
1161 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1162 "Client asks to resolve `%s'\n",
1163 hostname);
1155 switch (af) 1164 switch (af)
1156 { 1165 {
1157 case AF_UNSPEC: 1166 case AF_UNSPEC: