mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
receiving file works
This commit is contained in:
parent
98374c31cd
commit
6e27bfebdd
7 changed files with 416 additions and 70 deletions
2
main.go
2
main.go
|
@ -16,7 +16,7 @@ func main() {
|
|||
if *role == -1 {
|
||||
err = c.Relay()
|
||||
} else if *role == 0 {
|
||||
err = c.Send("foo", *passphrase)
|
||||
err = c.Send("croc.exe", *passphrase)
|
||||
} else {
|
||||
err = c.Receive(*passphrase)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue