From 9f0f7806c4a511176c64741b378a5a999c013808 Mon Sep 17 00:00:00 2001 From: Boshi Lian Date: Thu, 24 Oct 2024 17:58:28 -0700 Subject: [PATCH] Refactor skel.go to read userKnownHosts file in KnownHosts function --- plugin/workingdir/skel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/workingdir/skel.go b/plugin/workingdir/skel.go index 8d1c3975..2951e6fd 100644 --- a/plugin/workingdir/skel.go +++ b/plugin/workingdir/skel.go @@ -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) {