Its working

Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
Miek Gieben
2020-01-15 16:37:18 +01:00
parent cf478b0aed
commit 5f2d5788b0
23 changed files with 177 additions and 3673 deletions

View File

@@ -8,7 +8,6 @@ import (
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/plugin/traffic/xds"
"github.com/coredns/coredns/plugin/traffic/xds/bootstrap"
"github.com/miekg/dns"
)
@@ -21,11 +20,7 @@ type Traffic struct {
// New returns a pointer to a new and initialized Traffic.
func New() (*Traffic, error) {
config, err := bootstrap.NewConfig()
if err != nil {
return nil, err
}
c, err := xds.New(xds.Options{Config: *config})
c, err := xds.New(":18000", "mycoredns")
if err != nil {
return nil, err
}