From 505944667fe8c029a9ceccee5176972cf97544d7 Mon Sep 17 00:00:00 2001 From: Joren Schipman Date: Thu, 2 May 2024 15:12:19 +0200 Subject: [PATCH] add end of data --- rsaserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }