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

make initial connection

This commit is contained in:
Zack Scholl 2019-04-30 11:35:02 -06:00
parent ce45c53b38
commit 8f816304f9

View file

@ -137,6 +137,7 @@ func New(ops Options) (c *Client, err error) {
} else {
c.conn[0].Send([]byte("hello"))
}
log.Debug("exchanged header message")
// use default key (no encryption, until PAKE succeeds)
c.Key, err = crypt.New(nil, nil)