From 5887bc116f00062e3e9c0dcc7cc8eca84f5160ac Mon Sep 17 00:00:00 2001 From: Zachary Walters Date: Fri, 3 Feb 2023 23:43:36 -0600 Subject: chore: remove usages of the deprecated `ioutil` (#7332) Co-authored-by: Joe Chen --- internal/ssh/ssh.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/ssh') diff --git a/internal/ssh/ssh.go b/internal/ssh/ssh.go index a3df9909..dfbd2281 100644 --- a/internal/ssh/ssh.go +++ b/internal/ssh/ssh.go @@ -7,7 +7,6 @@ package ssh import ( "fmt" "io" - "io/ioutil" "net" "os" "os/exec" @@ -190,7 +189,7 @@ func Listen(host string, port int, ciphers, macs []string) { log.Trace("SSH: New private key is generateed: %s", keyPath) } - privateBytes, err := ioutil.ReadFile(keyPath) + privateBytes, err := os.ReadFile(keyPath) if err != nil { panic("SSH: Failed to load private key: " + err.Error()) } -- cgit v1.2.3