mirror of https://github.com/schollz/croc.git
make initial connection
This commit is contained in:
parent
a35779f718
commit
ce45c53b38
|
@ -132,7 +132,11 @@ func New(ops Options) (c *Client, err error) {
|
|||
return
|
||||
}
|
||||
log.Debugf("connection established: %+v", c.conn[0])
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue