Skip to content

Commit

Permalink
Fixed #76
Browse files Browse the repository at this point in the history
  • Loading branch information
fanpei91 committed Apr 22, 2019
1 parent 51e915a commit 79c39f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torsniff.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (t *torsniff) saveTorrent(infohashHex string, data []byte) error {
return err
}

f, err := fileutil.TryLockFile(name, os.O_RDWR|os.O_CREATE, 0755)
f, err := fileutil.TryLockFile(name, os.O_WRONLY|os.O_CREATE, 0755)
if err != nil {
return err
}
Expand Down

0 comments on commit 79c39f4

Please # to comment.