diff --git a/rsaserver.go b/rsaserver.go index 188eab7..4fc3f19 100644 --- a/rsaserver.go +++ b/rsaserver.go @@ -92,7 +92,7 @@ func handleConnection(conn net.Conn, privateKey *rsa.PrivateKey) { log.Printf("Error reading chunk: %v", err) return } - if strings.TrimSpace(chunk) == "END_OF_COMMUNICATION" { + if strings.TrimSpace(chunk) == "END_OF_DATA" { fmt.Println("Client ended communication") break }