Skip to content

Commit

Permalink
Corrige
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-couto committed Mar 22, 2021
1 parent f9dc2dc commit a9c3ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"time"
)

func listaDeArquivosDisponiveisNoFTP(remote string, port string, user string, pass string) (*ftp.ServerConn, error, []string) {
func ListaDeArquivosDisponiveisNoFTP(remote string, port string, user string, pass string) (*ftp.ServerConn, error, []string) {
c, err := ftp.Dial(remote+":"+port, ftp.DialWithTimeout(60*time.Second))
if err != nil {
CreateFileDay(err.Error())
Expand All @@ -31,7 +31,7 @@ func listaDeArquivosDisponiveisNoFTP(remote string, port string, user string, pa

// parse OpenSSH known_hosts file
// ssh or use ssh-keyscan to get initial key
func getHostKey(host string, isProduction bool) ssh.PublicKey {
func GetHostKey(host string, isProduction bool) ssh.PublicKey {
var file *os.File
var err error

Expand Down

0 comments on commit a9c3ee6

Please sign in to comment.