mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Ensure PublicKey option is unused, map old config options
This commit is contained in:
parent
99973b2757
commit
ea15eeee7e
5 changed files with 51 additions and 55 deletions
|
@ -305,11 +305,7 @@ func (m *Multicast) _announce() {
|
|||
if a, err := net.ResolveTCPAddr("tcp6", lladdr); err == nil {
|
||||
a.Zone = ""
|
||||
destAddr.Zone = iface.Name
|
||||
key, err := hex.DecodeString(m.config.PublicKey)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
msg := append([]byte(nil), key...)
|
||||
msg := append([]byte(nil), m.core.GetSelf().Key...)
|
||||
msg = append(msg, a.String()...)
|
||||
_, _ = m.sock.WriteTo(msg, nil, destAddr)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue