net: wget: let wget_with_dns work with dns disabled

This was marked as TODO in the code:
 - Enable use of wget_with_dns even if CMD_DNS is disabled if
   the given uri has the ip address for the http server.
 - Move the check for CMD_DNS inside wget_with_dns.
 - Rename wget_with_dns to wget_do_request

Signed-off-by: Adriano Cordova <adrianox@gmail.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
(cherry picked from commit 9bab7d2a7c)
Manuual fixup : pickman created a large diff but the code already exists
Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Adriano Cordova
2024-12-04 00:05:16 -03:00
committed by Simon Glass
parent 08409ed295
commit aaea489b2a

Diff Content Not Available