mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 11:50:28 +00:00
Fix core_test.go
This commit is contained in:
parent
3646a8674c
commit
9b28f725e2
@ -11,11 +11,12 @@ import (
|
|||||||
"github.com/gologme/log"
|
"github.com/gologme/log"
|
||||||
|
|
||||||
"github.com/yggdrasil-network/yggdrasil-go/src/config"
|
"github.com/yggdrasil-network/yggdrasil-go/src/config"
|
||||||
|
"github.com/yggdrasil-network/yggdrasil-go/src/defaults"
|
||||||
)
|
)
|
||||||
|
|
||||||
// GenerateConfig produces default configuration with suitable modifications for tests.
|
// GenerateConfig produces default configuration with suitable modifications for tests.
|
||||||
func GenerateConfig() *config.NodeConfig {
|
func GenerateConfig() *config.NodeConfig {
|
||||||
cfg := config.GenerateConfig()
|
cfg := defaults.GenerateConfig()
|
||||||
cfg.AdminListen = "none"
|
cfg.AdminListen = "none"
|
||||||
cfg.Listen = []string{"tcp://127.0.0.1:0"}
|
cfg.Listen = []string{"tcp://127.0.0.1:0"}
|
||||||
cfg.IfName = "none"
|
cfg.IfName = "none"
|
||||||
|
Loading…
Reference in New Issue
Block a user