1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-28 09:35:14 +03: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 { if !useWebsockets {
f, err = os.OpenFile(fstats.SentName, os.O_WRONLY, 0644) f, err = os.OpenFile(fstats.SentName, os.O_WRONLY, 0644)
} else { } 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 { if err != nil {
log.Error(err) log.Error(err)