0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

allow selecting hash

This commit is contained in:
Zack Scholl 2021-06-21 07:34:28 -07:00
parent 646c879edc
commit ecf3eb872e
2 changed files with 3 additions and 3 deletions

View file

@ -776,7 +776,7 @@ func (c *Client) processMessageFileInfo(m message.Message) (done bool, err error
c.Options.NoCompress = senderInfo.NoCompress
c.Options.HashAlgorithm = senderInfo.HashAlgorithm
if c.Options.HashAlgorithm == "" {
c.Options.HashAlgorithm = "imohash"
c.Options.HashAlgorithm = "xxhash"
}
log.Debugf("using hash algorithm: %s", c.Options.HashAlgorithm)
if c.Options.NoCompress {