mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
committed by
Heinrich Schuchardt
parent
dc7c8a2532
commit
9bab7d2a7c
@@ -479,7 +479,7 @@ static efi_status_t try_load_from_uri_path(struct efi_device_path_uri *uridp,
|
||||
}
|
||||
|
||||
image_addr = hextoul(s, NULL);
|
||||
err = wget_with_dns(image_addr, uridp->uri);
|
||||
err = wget_do_request(image_addr, uridp->uri);
|
||||
if (err < 0) {
|
||||
ret = EFI_INVALID_PARAMETER;
|
||||
goto err;
|
||||
|
||||
Reference in New Issue
Block a user