mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-26 15:21:37 +00:00
Merge pull request #160 from neilalexander/fixdebug
Fix debug builds after changes in #155
This commit is contained in:
commit
5cff8428c3
@ -22,6 +22,8 @@ import "net/http"
|
|||||||
import "runtime"
|
import "runtime"
|
||||||
import "os"
|
import "os"
|
||||||
|
|
||||||
|
import "yggdrasil/defaults"
|
||||||
|
|
||||||
// Start the profiler in debug builds, if the required environment variable is set.
|
// Start the profiler in debug builds, if the required environment variable is set.
|
||||||
func init() {
|
func init() {
|
||||||
envVarName := "PPROFLISTEN"
|
envVarName := "PPROFLISTEN"
|
||||||
@ -239,15 +241,15 @@ func (c *Core) DEBUG_getDHTSize() int {
|
|||||||
// TUN defaults
|
// TUN defaults
|
||||||
|
|
||||||
func (c *Core) DEBUG_GetTUNDefaultIfName() string {
|
func (c *Core) DEBUG_GetTUNDefaultIfName() string {
|
||||||
return getDefaults().defaultIfName
|
return defaults.GetDefaults().DefaultIfName
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Core) DEBUG_GetTUNDefaultIfMTU() int {
|
func (c *Core) DEBUG_GetTUNDefaultIfMTU() int {
|
||||||
return getDefaults().defaultIfMTU
|
return defaults.GetDefaults().DefaultIfMTU
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Core) DEBUG_GetTUNDefaultIfTAPMode() bool {
|
func (c *Core) DEBUG_GetTUNDefaultIfTAPMode() bool {
|
||||||
return getDefaults().defaultIfTAPMode
|
return defaults.GetDefaults().DefaultIfTAPMode
|
||||||
}
|
}
|
||||||
|
|
||||||
// udpInterface
|
// udpInterface
|
||||||
|
Loading…
Reference in New Issue
Block a user