mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +08:00
refactor: tools
This commit is contained in:
@@ -68,5 +68,5 @@ func NewSSHClient(conf *SSHClientConfig) (*ssh.Client, error) {
|
||||
}
|
||||
|
||||
func getKey(keyPath string) (ssh.Signer, error) {
|
||||
return ssh.ParsePrivateKey([]byte(tools.ReadFile(keyPath)))
|
||||
return ssh.ParsePrivateKey([]byte(tools.Read(keyPath)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user