mirror of
https://github.com/schollz/croc.git
synced 2024-11-24 08:02:33 +03:00
fix file descriptor
This commit is contained in:
parent
edda09df00
commit
9335aca877
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user