Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit ab13962

Browse files
authored
Fix FTP Connection Error (#29)
* fixes #27 * fix var name typo * bump version
1 parent 680f37c commit ab13962

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.2.2.{build}
1+
version: 0.2.3.{build}
22

33
#branches:
44
# only:

src/Connection/Connect-To.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ function Connect-To {
182182
FtpMode = 'Passive'
183183
}
184184
try {
185-
$Global:WinSCPSession = New-WinSCPSession @WinSCPConParams
185+
$FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
186+
$Global:WinSCPSession = New-WinSCPSession @FTPSessionOption
186187
}
187188
catch {
188189
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type

0 commit comments

Comments
 (0)