Skip to content

Commit

Permalink
Merge pull request #299 from Romascopa/master
Browse files Browse the repository at this point in the history
updated powershell template to support airgapped artifact environment…
  • Loading branch information
tas50 committed Dec 31, 2019
2 parents 762f2d0 + 28957c1 commit 56a250b
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ function Get-WebContentOnFullNet {
$wc = new-object System.Net.WebClient
$wc.Headers.Add("user-agent", "<%= user_agent_string %>")
$proxy.Address = $env:http_proxy
$bypassList = $env:no_proxy


if($bypassList -ne $null){

$bypassList = $bypassList.split(",")
$proxy.BypassList = $byPassList
}

$wc.Proxy = $proxy

if ([string]::IsNullOrEmpty($filepath)) {
Expand Down

0 comments on commit 56a250b

Please sign in to comment.