From f21cbaef9c7f5bd0065e15026d8debf0f91d066a Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 9 Jul 2018 09:38:48 +0100 Subject: [PATCH] Fix debug builds after changes in #155 --- src/yggdrasil/debug.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/yggdrasil/debug.go b/src/yggdrasil/debug.go index 564d59cb..4cb1072e 100644 --- a/src/yggdrasil/debug.go +++ b/src/yggdrasil/debug.go @@ -22,6 +22,8 @@ import "net/http" import "runtime" import "os" +import "yggdrasil/defaults" + // Start the profiler in debug builds, if the required environment variable is set. func init() { envVarName := "PPROFLISTEN" @@ -239,15 +241,15 @@ func (c *Core) DEBUG_getDHTSize() int { // TUN defaults func (c *Core) DEBUG_GetTUNDefaultIfName() string { - return getDefaults().defaultIfName + return defaults.GetDefaults().DefaultIfName } func (c *Core) DEBUG_GetTUNDefaultIfMTU() int { - return getDefaults().defaultIfMTU + return defaults.GetDefaults().DefaultIfMTU } func (c *Core) DEBUG_GetTUNDefaultIfTAPMode() bool { - return getDefaults().defaultIfTAPMode + return defaults.GetDefaults().DefaultIfTAPMode } // udpInterface