From fb2fb5de5e382e96a3a18550321dacf5d1acbe67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Wed, 28 Sep 2022 15:31:33 +0200 Subject: [PATCH] fix duplicate setspeed call --- honeypot/ssh/server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/honeypot/ssh/server.go b/honeypot/ssh/server.go index d537b6f..9d1c801 100644 --- a/honeypot/ssh/server.go +++ b/honeypot/ssh/server.go @@ -122,7 +122,6 @@ func (s *HoneypotServer) connCallback(ctx sshlib.Context, conn net.Conn) net.Con throttledConn := newThrottledConn(conn) throttledConn.SetSpeed(s.throttleSpeed) ctx.SetValue("uuid", throttledConn.ID) - throttledConn.SetSpeed(s.throttleSpeed) return throttledConn }