We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7c332c commit b7f9e8eCopy full SHA for b7f9e8e
1 file changed
drivers/sftp/util.go
@@ -3,6 +3,7 @@ package sftp
3
import (
4
"fmt"
5
"path"
6
+ "time"
7
8
"github.com/OpenListTeam/OpenList/v4/pkg/singleflight"
9
"github.com/pkg/sftp"
@@ -39,6 +40,7 @@ func (d *SFTP) _initClient() error {
39
40
User: d.Username,
41
Auth: []ssh.AuthMethod{auth},
42
HostKeyCallback: ssh.InsecureIgnoreHostKey(),
43
+ Timeout: 10 * time.Second,
44
}
45
conn, err := ssh.Dial("tcp", d.Address, config)
46
if err != nil {
0 commit comments