ci: use go1.16rc1

This commit is contained in:
nadoo committed 2021-02-06 00:26:58 +08:00
1 parent 068281cafa
commit 40aadf3e24
14 files changed
+99 -71

No files matched your search

+2 -2
View File
@@ -1,9 +1,9 @@
package ssh
import (
"io/ioutil"
"net"
"net/url"
"os"
"time"
"golang.org/x/crypto/ssh"
@@ -104,7 +104,7 @@ func (s *SSH) DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr
}
func privateKeyAuth(file string) (ssh.AuthMethod, error) {
buffer, err := ioutil.ReadFile(file)
buffer, err := os.ReadFile(file)
if err != nil {
return nil, err
}