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

copy over info

This commit is contained in:
Zack Scholl 2018-06-30 12:04:07 -07:00
parent 0d71cde941
commit d1d5b02f27

View file

@ -76,6 +76,7 @@ func (c *Croc) Send(fname string, codePhrase string) (err error) {
go d.startServer()
e := Init()
e.WebsocketAddress = "ws://127.0.0.1:8140"
// copy over the information
c.cs.Lock()
e.cs.Lock()
e.cs.channel.codePhrase = codePhrase