diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-04-11 14:19:12 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-04-11 14:19:12 -0400 |
| commit | b5901aa3caddd987c5f4b6bc1ab7f62249580fcc (patch) | |
| tree | 2555d5c7bc15979d7e363a6ef97587a70eff0844 /main.go | |
| parent | 434434f6fa361daf599f6e7a35aa3b85a664a17f (diff) | |
| download | hose-b5901aa3caddd987c5f4b6bc1ab7f62249580fcc.zip | |
load public key from file
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -12,17 +12,18 @@ import ( const ( port = "60321" network = "tcp" - usage = "Usage: hose <-r | -s <rhost>>" + usage = "Usage: hose <-handshake <rhost> | -r | -s <rhost>>" ) var ( - recvFlag = flag.Bool("r", false, "receive") - sendHost = flag.String("s", "", "send to remote host") + handshakeHost = flag.String("handshake", "", "exchange public keys with remote host") + recvFlag = flag.Bool("r", false, "receive") + sendHost = flag.String("s", "", "send to remote host") ) func main() { flag.Parse() - if *handshakeHost { + if *handshakeHost != "" { if err := handshake(*handshakeHost); err != nil { eprintf("%v\n", err) } |