From: Peter Jones Date: Mon, 9 Jan 2023 23:30:36 +0000 (-0500) Subject: efinet: also use the firmware acceleration for http X-Git-Tag: archive/raspbian/2.12-8+rpi1~1^2~36 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a6843a6836c0e0197872d30f0df2ea88e67441d;p=grub2.git efinet: also use the firmware acceleration for http Signed-off-by: Peter Jones Signed-off-by: Robbie Harwood Gbp-Pq: Topic network Gbp-Pq: Name efinet-also-use-the-firmware-acceleration-for-http.patch --- diff --git a/grub-core/net/efi/net.c b/grub-core/net/efi/net.c index eeafdcd..e1e7da8 100644 --- a/grub-core/net/efi/net.c +++ b/grub-core/net/efi/net.c @@ -1307,7 +1307,10 @@ grub_efi_net_boot_from_https (void) && (subtype == GRUB_EFI_URI_DEVICE_PATH_SUBTYPE)) { grub_efi_uri_device_path_t *uri_dp = (grub_efi_uri_device_path_t *) dp; - return (grub_strncmp ((const char*) uri_dp->uri, "https://", sizeof ("https://") - 1) == 0) ? 1 : 0; + + grub_dprintf ("efinet", "url:%s\n", (const char *) uri_dp->uri); + return (grub_strncmp ((const char *) uri_dp->uri, "https://", sizeof ("https://") - 1) == 0 || + grub_strncmp ((const char *) uri_dp->uri, "http://", sizeof ("http://") - 1) == 0); } if (GRUB_EFI_END_ENTIRE_DEVICE_PATH (dp))