add migrate old config

This commit is contained in:
yuzuki999
2023-06-02 09:19:37 +08:00
parent 989b4ff13e
commit e263e70f37
5 changed files with 99 additions and 7 deletions

View File

@@ -4,5 +4,5 @@ import "testing"
func TestConf_LoadFromPath(t *testing.T) {
c := New()
t.Log(c.LoadFromPath("../example/config.yml.example"))
t.Log(c.LoadFromPath("../example/config.yml.example"), c.NodesConfig[0].ControllerConfig.LimitConfig.IPLimit)
}