mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-06-21 16:45:06 +03:00
Only validate CKR routes if CKR enabled
This commit is contained in:
parent
19e6aaf9f5
commit
f0947223bb
3 changed files with 9 additions and 7 deletions
|
@ -122,7 +122,7 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) error {
|
|||
}
|
||||
|
||||
if nc.TunnelRouting.Enable {
|
||||
for ipv6, pubkey := range nc.TunnelRouting.IPv6Routes {
|
||||
for ipv6, pubkey := range nc.TunnelRouting.IPv6Destinations {
|
||||
if err := c.router.cryptokey.addRoute(ipv6, pubkey); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue