code: func (a *Agent) TranslateAddress(dc string, addr string, taggedAddresses map[string]string) string {
  	if a.config.TranslateWANAddrs && (a.config.Datacenter != dc) {
  		wanAddr := taggedAddresses["wan"]
  		if wanAddr != "" {
  			addr = wanAddr
  		}
  	}
  	return addr
  }
docs: // TranslateAddress is used to provide the final, translated address for a node,
  // depending on how the agent and the other node are configured. The dc
  // parameter is the dc the datacenter this node is from.