diff --git a/src/recipient/recipient.go b/src/recipient/recipient.go index fa4fc9cb..8e4bc873 100644 --- a/src/recipient/recipient.go +++ b/src/recipient/recipient.go @@ -204,7 +204,7 @@ func receive(forceSend int, serverAddress string, tcpPorts []string, isLocal boo if !useWebsockets { f, err = os.OpenFile(fstats.SentName, os.O_WRONLY, 0644) } else { - f, err = os.OpenFile(fstats.SentName, os.O_APPEND, 0644) + f, err = os.OpenFile(fstats.SentName, os.O_APPEND|os.O_WRONLY, 0644) } if err != nil { log.Error(err)