mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -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 {
|
||||
return nil, err
|
||||
}
|
||||
t.to = toHosts[0]
|
||||
|
||||
return t, nil
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ func New(addr, node string, opts ...grpc.DialOption) (*Client, error) {
|
||||
return nil, err
|
||||
}
|
||||
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{
|
||||
Fields: map[string]*structpb.Value{
|
||||
"HOSTNAME": {
|
||||
|
||||
Reference in New Issue
Block a user