mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
The AllowedPublicKeys
option should not apply to multicast listeners
Another fix for #1141.
This commit is contained in:
parent
d1b849588f
commit
377bc664c9
4 changed files with 28 additions and 19 deletions
|
@ -327,7 +327,7 @@ func (m *Multicast) _announce() {
|
|||
Host: net.JoinHostPort(addrIP.String(), fmt.Sprintf("%d", info.port)),
|
||||
RawQuery: v.Encode(),
|
||||
}
|
||||
if li, err := m.core.Listen(u, iface.Name); err == nil {
|
||||
if li, err := m.core.ListenLocal(u, iface.Name); err == nil {
|
||||
m.log.Debugln("Started multicasting on", iface.Name)
|
||||
// Store the listener so that we can stop it later if needed
|
||||
linfo = &listenerInfo{listener: li, time: time.Now(), port: info.port}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue