aboutsummaryrefslogtreecommitdiff
path: root/internal/ssh
diff options
context:
space:
mode:
authorZachary Walters <zachary.christopher.walters@gmail.com>2023-02-03 23:43:36 -0600
committerGitHub <noreply@github.com>2023-02-04 13:43:36 +0800
commit5887bc116f00062e3e9c0dcc7cc8eca84f5160ac (patch)
treef3ecbfdb9a084821d1b524ce020f46378d416e71 /internal/ssh
parent6d220540c15e68196404951e8b67cac8002d1a6f (diff)
chore: remove usages of the deprecated `ioutil` (#7332)
Co-authored-by: Joe Chen <jc@unknwon.io>
Diffstat (limited to 'internal/ssh')
-rw-r--r--internal/ssh/ssh.go3
1 files changed, 1 insertions, 2 deletions
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())
}