mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
parent
43a1a3de64
commit
c00779c7d3
2 changed files with 6 additions and 1 deletions
|
@ -422,7 +422,10 @@ func (l *links) listen(u *url.URL, sintf string) (*Listener, error) {
|
||||||
li := &Listener{
|
li := &Listener{
|
||||||
listener: listener,
|
listener: listener,
|
||||||
ctx: ctx,
|
ctx: ctx,
|
||||||
Cancel: cancel,
|
Cancel: func() {
|
||||||
|
cancel()
|
||||||
|
_ = listener.Close()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
var options linkOptions
|
var options linkOptions
|
||||||
|
|
|
@ -190,6 +190,8 @@ func (m *Multicast) _getAllowedInterfaces() map[string]*interfaceInfo {
|
||||||
switch {
|
switch {
|
||||||
case iface.Flags&net.FlagUp == 0:
|
case iface.Flags&net.FlagUp == 0:
|
||||||
continue // Ignore interfaces that are down
|
continue // Ignore interfaces that are down
|
||||||
|
case iface.Flags&net.FlagRunning == 0:
|
||||||
|
continue // Ignore interfaces that are not running
|
||||||
case iface.Flags&net.FlagMulticast == 0:
|
case iface.Flags&net.FlagMulticast == 0:
|
||||||
continue // Ignore non-multicast interfaces
|
continue // Ignore non-multicast interfaces
|
||||||
case iface.Flags&net.FlagPointToPoint != 0:
|
case iface.Flags&net.FlagPointToPoint != 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue