We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d0d39a commit 1ac8ac0Copy full SHA for 1ac8ac0
1 file changed
lib/core.ps1
@@ -100,7 +100,7 @@ function setup_proxy() {
100
[net.webrequest]::defaultwebproxy.credentials = [net.credentialcache]::defaultcredentials
101
} elseif($credentials) {
102
$username, $password = $credentials -split '(?<!\\):' | ForEach-Object { $_ -replace '\\([@:])','$1' }
103
- [net.webrequest]::defaultwebproxy.credentials = new-object net.networkcredential($user, $pass)
+ [net.webrequest]::defaultwebproxy.credentials = new-object net.networkcredential($username, $password)
104
}
105
} catch {
106
warn "Failed to use proxy '$proxy': $($_.exception.message)"
0 commit comments