mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Move multicasting into yggdrasil package
This commit is contained in:
parent
388ae09fca
commit
6f79184c9b
6 changed files with 196 additions and 129 deletions
|
@ -19,10 +19,11 @@ type Core struct {
|
|||
tun tunDevice
|
||||
admin admin
|
||||
searches searches
|
||||
multicast multicast
|
||||
tcp *tcpInterface
|
||||
udp *udpInterface
|
||||
log *log.Logger
|
||||
ifceExpr *regexp.Regexp // the zone of link-local IPv6 peers must match this
|
||||
ifceExpr []*regexp.Regexp // the zone of link-local IPv6 peers must match this
|
||||
}
|
||||
|
||||
func (c *Core) Init() {
|
||||
|
@ -49,6 +50,7 @@ func (c *Core) init(bpub *boxPubKey,
|
|||
c.searches.init(c)
|
||||
c.dht.init(c)
|
||||
c.sessions.init(c)
|
||||
c.multicast.init(c)
|
||||
c.peers.init(c)
|
||||
c.router.init(c)
|
||||
c.switchTable.init(c, c.sigPub) // TODO move before peers? before router?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue