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

Turn off decryption

This commit is contained in:
Zack Scholl 2017-10-17 22:04:59 -06:00
parent 109fef84d0
commit 09bcda2705

View file

@ -87,7 +87,9 @@ func runClient(connectionType string, codePhrase string) {
return return
} }
ioutil.WriteFile(fileName, decrypted, 0644) ioutil.WriteFile(fileName, decrypted, 0644)
os.Remove(fileName + ".encrypted") if !debugFlag {
os.Remove(fileName + ".encrypted")
}
log.Debugf("\n\n\ndownloaded hash: [%s]", HashBytes(decrypted)) log.Debugf("\n\n\ndownloaded hash: [%s]", HashBytes(decrypted))
log.Debugf("\n\n\nrelayed hash: [%s]", fileHash) log.Debugf("\n\n\nrelayed hash: [%s]", fileHash)