Fix FTP Connection Error #29
@ -182,8 +182,8 @@ function Connect-To {
|
|||||||
FtpMode = 'Passive'
|
FtpMode = 'Passive'
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$FTPSessionOption = New-WinSCPSessionOption @FTPSessionOption
|
$FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
|
||||||
$Global:WinSCPSession = New-WinSCPSession @WinSCPConParams
|
$Global:WinSCPSession = New-WinSCPSession @FTPSessionOption
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type
|
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type
|
||||||
|
Loading…
Reference in New Issue
Block a user