add end of data
This commit is contained in:
parent
83a2e2372f
commit
505944667f
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user