mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
@@ -117,7 +117,6 @@ func parseTraffic(c *caddy.Controller) (*Traffic, error) {
|
|||||||
if t.c, err = xds.New(toHosts[0], node, opts...); err != nil {
|
if t.c, err = xds.New(toHosts[0], node, opts...); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
t.to = toHosts[0]
|
|
||||||
|
|
||||||
return t, nil
|
return t, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ func New(addr, node string, opts ...grpc.DialOption) (*Client, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
hostname, _ := os.Hostname()
|
hostname, _ := os.Hostname()
|
||||||
c := &Client{cc: cc, node: &corepb.Node{Id: node,
|
c := &Client{cc: cc, to: addr, node: &corepb.Node{Id: node,
|
||||||
Metadata: &structpb.Struct{
|
Metadata: &structpb.Struct{
|
||||||
Fields: map[string]*structpb.Value{
|
Fields: map[string]*structpb.Value{
|
||||||
"HOSTNAME": {
|
"HOSTNAME": {
|
||||||
|
|||||||
Reference in New Issue
Block a user