mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 20:00:27 +00:00
Some output at startup
This commit is contained in:
parent
f0947223bb
commit
bc578f571c
@ -86,6 +86,7 @@ func (c *cryptokey) addSourceSubnet(cidr string) error {
|
|||||||
|
|
||||||
// Add the source subnet
|
// Add the source subnet
|
||||||
c.ipv6sources = append(c.ipv6sources, *ipnet)
|
c.ipv6sources = append(c.ipv6sources, *ipnet)
|
||||||
|
c.core.log.Println("Added CKR source subnet", cidr)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -138,6 +139,7 @@ func (c *cryptokey) addRoute(cidr string, dest string) error {
|
|||||||
delete(c.ipv6cache, k)
|
delete(c.ipv6cache, k)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.core.log.Println("Added CKR destination subnet", cidr)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
} else if prefixsize == net.IPv4len*8 {
|
} else if prefixsize == net.IPv4len*8 {
|
||||||
|
@ -122,6 +122,7 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if nc.TunnelRouting.Enable {
|
if nc.TunnelRouting.Enable {
|
||||||
|
c.log.Println("Crypto-key routing enabled")
|
||||||
for ipv6, pubkey := range nc.TunnelRouting.IPv6Destinations {
|
for ipv6, pubkey := range nc.TunnelRouting.IPv6Destinations {
|
||||||
if err := c.router.cryptokey.addRoute(ipv6, pubkey); err != nil {
|
if err := c.router.cryptokey.addRoute(ipv6, pubkey); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user