summaryrefslogtreecommitdiffstats
path: root/discover/boot.c
diff options
context:
space:
mode:
Diffstat (limited to 'discover/boot.c')
-rw-r--r--discover/boot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/discover/boot.c b/discover/boot.c
index fab4b61..ba4e720 100644
--- a/discover/boot.c
+++ b/discover/boot.c
@@ -579,6 +579,11 @@ struct boot_task *boot(void *ctx, struct discover_boot_option *opt,
dtb = opt->dtb->url;
}
+ if (opt && opt->proxy) {
+ setenv("http_proxy", opt->proxy, 1);
+ setenv("https_proxy", opt->proxy, 1);
+ }
+
boot_task = talloc_zero(ctx, struct boot_task);
boot_task->dry_run = dry_run;
boot_task->status_fn = status_fn;
OpenPOWER on IntegriCloud