1
0
mirror of https://github.com/schollz/croc.git synced 2024-11-24 08:02:33 +03:00

fix address bug

This commit is contained in:
Zack Scholl 2018-07-01 18:56:37 -07:00
parent 91c95a5a8c
commit 7f423cda26

View File

@ -105,7 +105,12 @@ func (c *Croc) updateChannel(cd channelData) (err error) {
c.rs.channel[cd.Channel].Pake.Xᵥ = cd.Pake.Xᵥ
c.rs.channel[cd.Channel].Pake.Yᵤ = cd.Pake.Yᵤ
c.rs.channel[cd.Channel].Pake.Yᵥ = cd.Pake.Yᵥ
c.rs.channel[cd.Channel].Addresses = cd.Addresses
if cd.Addresses[0] != "" {
c.rs.channel[cd.Channel].Addresses[0] = cd.Addresses[0]
}
if cd.Addresses[1] != "" {
c.rs.channel[cd.Channel].Addresses[1] = cd.Addresses[1]
}
return
}