code: func (a *Agent) resolveProxyToken(id string) *local.ManagedProxy {
  	for _, p := range a.State.Proxies() {
  		if p.ProxyToken == id {
  			return p
  		}
  	}
  
  	return nil
  }
docs: // resolveProxyToken attempts to resolve an ACL ID to a local proxy token.
  // If a local proxy isn't found with that token, nil is returned.