5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 16:31:41 +00:00

fix debug builds

This commit is contained in:
Arceliar 2019-08-23 22:40:13 -05:00
parent cf9880464b
commit cac3444d9a

View File

@ -258,7 +258,7 @@ func DEBUG_wire_encode_coords(coords []byte) []byte {
func (c *Core) DEBUG_getDHTSize() int { func (c *Core) DEBUG_getDHTSize() int {
var total int var total int
c.router.doAdmin(func() { c.router.doAdmin(func() {
total = len(c.dht.table) total = len(c.router.dht.table)
}) })
return total return total
} }
@ -320,7 +320,7 @@ func (c *Core) DEBUG_startLoopbackUDPInterface() {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
func (c *Core) DEBUG_getAddr() *address.Address { func (c *Core) DEBUG_getAddr() *address.Address {
return address.AddrForNodeID(&c.dht.nodeID) return address.AddrForNodeID(&c.router.dht.nodeID)
} }
/* /*