From baae42b2f867c9696a1479945e5455845add5436 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Sat, 21 May 2011 22:33:18 +0200 Subject: [PATCH] Made DNS optional - just like the other web clients. --- apps/shell/shell-wget.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/shell/shell-wget.c b/apps/shell/shell-wget.c index 32c713aef..b52383391 100644 --- a/apps/shell/shell-wget.c +++ b/apps/shell/shell-wget.c @@ -127,6 +127,7 @@ open_url(char *url) file = "/"; } +#if UIP_UDP /* Try to lookup the hostname. If it fails, we initiate a hostname lookup and print out an informative message on the statusbar. */ if(uiplib_ipaddrconv(host, &addr) == 0) { @@ -137,6 +138,9 @@ open_url(char *url) return; } } +#else /* UIP_UDP */ + uiplib_ipaddrconv(host, &addr); +#endif /* UIP_UDP */ /* The hostname we present in the hostname table, so we send out the initial GET request. */ @@ -164,6 +168,7 @@ PROCESS_THREAD(shell_wget_process, ev, data) if(ev == tcpip_event) { webclient_appcall(data); +#if UIP_UDP } else if(ev == resolv_event_found) { /* Either found a hostname, or not. */ if((char *)data != NULL && @@ -172,6 +177,7 @@ PROCESS_THREAD(shell_wget_process, ev, data) } else { shell_output_str(&wget_command, "Host not found.", ""); } +#endif /* UIP_UDP */ } }