feat: review feedback, and more changes in cli

This commit is contained in:
=
2025-02-26 20:45:37 +05:30
parent f34370cb9d
commit f7406ea8f8
16 changed files with 336 additions and 82 deletions
+3 -1
View File
@@ -59,7 +59,9 @@ func handleConnection(conn net.Conn) {
CopyData(conn, destTarget)
return
case "PING":
conn.Write([]byte("PONG"))
if _, err := conn.Write([]byte("PONG")); err != nil {
log.Error().Msgf("Error writing PONG response: %v", err)
}
return
default:
log.Error().Msgf("Unknown command: %s", string(cmd))