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:
parent
646c879edc
commit
ecf3eb872e
2 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue