summaryrefslogtreecommitdiff
path: root/NetworkPkg/HttpBootDxe/HttpBootDxe.c
diff options
context:
space:
mode:
Diffstat (limited to 'NetworkPkg/HttpBootDxe/HttpBootDxe.c')
-rw-r--r--NetworkPkg/HttpBootDxe/HttpBootDxe.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootDxe.c b/NetworkPkg/HttpBootDxe/HttpBootDxe.c
index 168d4b7..5b92d77 100644
--- a/NetworkPkg/HttpBootDxe/HttpBootDxe.c
+++ b/NetworkPkg/HttpBootDxe/HttpBootDxe.c
@@ -305,6 +305,10 @@ HttpBootIp4DxeDriverBindingSupported (
{
EFI_STATUS Status;
+ if (PcdGetBool (PcdIPv4HttpSupport) == FALSE) {
+ return EFI_UNSUPPORTED;
+ }
+
//
// Try to open the DHCP4, HTTP4 and Device Path protocol.
//
@@ -795,6 +799,10 @@ HttpBootIp6DxeDriverBindingSupported (
{
EFI_STATUS Status;
+ if (PcdGetBool (PcdIPv6HttpSupport) == FALSE) {
+ return EFI_UNSUPPORTED;
+ }
+
//
// Try to open the DHCP6, HTTP and Device Path protocol.
//