mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
fix debug builds
This commit is contained in:
parent
cf9880464b
commit
cac3444d9a
@ -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)
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user