From bc578f571c2f01d5b8943a0754dbf7ff91b57176 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 6 Nov 2018 11:56:32 +0000 Subject: [PATCH] Some output at startup --- src/yggdrasil/ckr.go | 2 ++ src/yggdrasil/core.go | 1 + 2 files changed, 3 insertions(+) diff --git a/src/yggdrasil/ckr.go b/src/yggdrasil/ckr.go index ffe9206c..c1558663 100644 --- a/src/yggdrasil/ckr.go +++ b/src/yggdrasil/ckr.go @@ -86,6 +86,7 @@ func (c *cryptokey) addSourceSubnet(cidr string) error { // Add the source subnet c.ipv6sources = append(c.ipv6sources, *ipnet) + c.core.log.Println("Added CKR source subnet", cidr) return nil } @@ -138,6 +139,7 @@ func (c *cryptokey) addRoute(cidr string, dest string) error { delete(c.ipv6cache, k) } + c.core.log.Println("Added CKR destination subnet", cidr) return nil } } else if prefixsize == net.IPv4len*8 { diff --git a/src/yggdrasil/core.go b/src/yggdrasil/core.go index 03e8a263..10cf272d 100644 --- a/src/yggdrasil/core.go +++ b/src/yggdrasil/core.go @@ -122,6 +122,7 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error { } if nc.TunnelRouting.Enable { + c.log.Println("Crypto-key routing enabled") for ipv6, pubkey := range nc.TunnelRouting.IPv6Destinations { if err := c.router.cryptokey.addRoute(ipv6, pubkey); err != nil { panic(err)