diff --git a/torsniff.go b/torsniff.go index 3885f8c..69c45b3 100644 --- a/torsniff.go +++ b/torsniff.go @@ -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 }