]> git.ozlabs.org Git - petitboot/blobdiff - discover/boot.c
discover/pxe-parser: Fine grained proxy control
[petitboot] / discover / boot.c
index fab4b61cd681d4a3aac00464641936029388e4e2..ba4e7208fc7cf700a86c87fad4a8b5e4f092e375 100644 (file)
@@ -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;