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 4b4a353 commit db271c4Copy full SHA for db271c4
ssh/knownhosts/reader.go
@@ -12,9 +12,9 @@ import (
12
// operates on the hostname if available, i.e. if a server changes its
13
// IP address, the host key check will still succeed, even though a
14
// record of the new IP address is not available.
15
-func NewFromReader(r io.Reader) (ssh.HostKeyCallback, error) {
+func NewFromReader(readers ...io.Reader) (ssh.HostKeyCallback, error) {
16
db := newHostKeyDB()
17
- if err := db.Read(r, ""); err != nil {
+ if err := db.Read(io.MultiReader(readers...), ""); err != nil {
18
return nil, err
19
}
20
0 commit comments