mirror of
https://github.com/schollz/croc.git
synced 2024-11-24 16:23:47 +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 {
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user