From ce45c53b382751b6b376ec667e3c30e7f757056e Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Tue, 30 Apr 2019 11:32:11 -0600 Subject: [PATCH] make initial connection --- src/croc/croc.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/croc/croc.go b/src/croc/croc.go index fbc8226..4cc876f 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -132,7 +132,11 @@ func New(ops Options) (c *Client, err error) { return } log.Debugf("connection established: %+v", c.conn[0]) - fmt.Println(c.conn[0].Receive()) + if c.Options.IsSender { + fmt.Println(c.conn[0].Receive()) + } else { + c.conn[0].Send([]byte("hello")) + } // use default key (no encryption, until PAKE succeeds) c.Key, err = crypt.New(nil, nil)