0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 21:30:16 +02:00

fix file descriptor

This commit is contained in:
Zack Scholl 2018-10-09 07:03:33 -07:00
parent edda09df00
commit 9335aca877

View file

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