add end of data

This commit is contained in:
Joren Schipman 2024-05-02 15:12:19 +02:00
parent 83a2e2372f
commit 505944667f
Signed by untrusted user who does not match committer: Joren
GPG Key ID: 280E33DFBC0F1B55

View File

@ -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
}