From cac3444d9ae0a2e45aabe142430461843f91948b Mon Sep 17 00:00:00 2001 From: Arceliar Date: Fri, 23 Aug 2019 22:40:13 -0500 Subject: [PATCH] fix debug builds --- src/yggdrasil/debug.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yggdrasil/debug.go b/src/yggdrasil/debug.go index 9f7707e..d90bf1f 100644 --- a/src/yggdrasil/debug.go +++ b/src/yggdrasil/debug.go @@ -258,7 +258,7 @@ func DEBUG_wire_encode_coords(coords []byte) []byte { func (c *Core) DEBUG_getDHTSize() int { var total int c.router.doAdmin(func() { - total = len(c.dht.table) + total = len(c.router.dht.table) }) return total } @@ -320,7 +320,7 @@ func (c *Core) DEBUG_startLoopbackUDPInterface() { //////////////////////////////////////////////////////////////////////////////// func (c *Core) DEBUG_getAddr() *address.Address { - return address.AddrForNodeID(&c.dht.nodeID) + return address.AddrForNodeID(&c.router.dht.nodeID) } /*