Skip to content

Commit 1ac8ac0

Browse files
jorgheymansr15ch13
authored andcommitted
hotfix(proxy): rename parameters for Net.NetworkCredential (#3483)
close #3471
1 parent 5d0d39a commit 1ac8ac0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function setup_proxy() {
100100
[net.webrequest]::defaultwebproxy.credentials = [net.credentialcache]::defaultcredentials
101101
} elseif($credentials) {
102102
$username, $password = $credentials -split '(?<!\\):' | ForEach-Object { $_ -replace '\\([@:])','$1' }
103-
[net.webrequest]::defaultwebproxy.credentials = new-object net.networkcredential($user, $pass)
103+
[net.webrequest]::defaultwebproxy.credentials = new-object net.networkcredential($username, $password)
104104
}
105105
} catch {
106106
warn "Failed to use proxy '$proxy': $($_.exception.message)"

0 commit comments

Comments
 (0)