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:
parent
edda09df00
commit
9335aca877
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue