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

Commit

Permalink
Fix FTP Connection Error (#29)
Browse files Browse the repository at this point in the history
* fixes #27
* fix var name typo
* bump version
  • Loading branch information
OCram85 authored Mar 26, 2018
1 parent 680f37c commit ab13962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.2.2.{build}
version: 0.2.3.{build}

#branches:
# only:
Expand Down
3 changes: 2 additions & 1 deletion src/Connection/Connect-To.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ function Connect-To {
FtpMode = 'Passive'
}
try {
$Global:WinSCPSession = New-WinSCPSession @WinSCPConParams
$FTPSessionOption = New-WinSCPSessionOption @WinSCPConParams
$Global:WinSCPSession = New-WinSCPSession @FTPSessionOption
}
catch {
throw "Could not connect to {0} using {1} protocol!" -f $RemoteHost, $Type
Expand Down

0 comments on commit ab13962

Please sign in to comment.