Skip to content

Commit

Permalink
Refactor skel.go to read userKnownHosts file in KnownHosts function
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Oct 25, 2024
1 parent 77981b6 commit 9f0f780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/workingdir/skel.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (s *skelpipeToWrapper) IgnoreHostKey(conn libplugin.ConnMetadata) bool {
}

func (s *skelpipeToWrapper) KnownHosts(conn libplugin.ConnMetadata) ([]byte, error) {
return nil, nil // TODO support this
return s.dir.Readfile(userKnownHosts)
}

func (s *skelpipeFromWrapper) MatchConn(conn libplugin.ConnMetadata) (libplugin.SkelPipeTo, error) {
Expand Down

0 comments on commit 9f0f780

Please sign in to comment.