Skip to content

Commit 36a7375

Browse files
committed
Fix SFTP not taken into account
1 parent 44c51aa commit 36a7375

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 7.0.1 (2020/08/04)
4+
5+
* Fix SFTP not taken into account
6+
37
## 7.0.0 (2020/07/18)
48

59
:warning: See **Migration notes** in the documentation for breaking changes.

internal/app/ftpgrab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func (fg *FtpGrab) Run() {
106106
if fg.cfg.Server.FTP != nil {
107107
fg.srv, err = ftp.New(fg.cfg.Server.FTP)
108108
fg.jnl.ServerHost = fg.cfg.Server.FTP.Host
109-
} else if fg.cfg.Server.FTP != nil {
109+
} else if fg.cfg.Server.SFTP != nil {
110110
fg.srv, err = sftp.New(fg.cfg.Server.SFTP)
111111
fg.jnl.ServerHost = fg.cfg.Server.SFTP.Host
112112
} else {

0 commit comments

Comments
 (0)