From ab357236eae49670066381dbbe38c31756eaaf0c Mon Sep 17 00:00:00 2001 From: Andrew Ramsay Date: Fri, 24 Jan 2020 14:18:10 -0500 Subject: [PATCH] Passing proxy info along when registering default repository --- .../public/providerfunctions/Add-PackageSource.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 b/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 index 5d9518f1..5981b158 100644 --- a/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 +++ b/src/PowerShellGet/public/providerfunctions/Add-PackageSource.ps1 @@ -247,7 +247,7 @@ function Add-PackageSource if($Name -eq $Script:PSGalleryModuleSource) { # Add or update the PSGallery repository - $repository = Set-PSGalleryRepository -Trusted:$Trusted + $repository = Set-PSGalleryRepository -Trusted:$Trusted -Proxy $Proxy -ProxyCredential $ProxyCredential if($repository) {