Fill in the segment in the QuerySource for prepared query lookups

This commit is contained in:
Kyle Havlovitz 2017-08-31 03:35:59 -07:00
parent b77a0aa932
commit 5ebea7f049
No known key found for this signature in database
GPG Key ID: 8A5E6B173056AD6C
1 changed files with 1 additions and 0 deletions

View File

@ -778,6 +778,7 @@ func (d *DNSServer) preparedQueryLookup(network, datacenter, query string, req,
// relative to ourself on the server side. // relative to ourself on the server side.
Agent: structs.QuerySource{ Agent: structs.QuerySource{
Datacenter: d.agent.config.Datacenter, Datacenter: d.agent.config.Datacenter,
Segment: d.agent.config.Segment,
Node: d.agent.config.NodeName, Node: d.agent.config.NodeName,
}, },
} }