Update dependencies and fix some linter warnings

This commit is contained in:
2022-08-28 02:23:36 +02:00
parent 0ed71be705
commit d2fa727990
14 changed files with 148 additions and 42 deletions

View File

@@ -124,7 +124,7 @@ func (s *HoneypotServer) connCallback(ctx sshlib.Context, conn net.Conn) net.Con
func handler(session sshlib.Session) {
_, _ = io.WriteString(session, "[root@hostname ~]#")
session.Exit(1)
_ = session.Exit(1)
}
func ipFromAddr(addr string) net.IP {