code: func (a *Agent) connectedToRightProxy() bool {
  	for _, proxy := range a.DiscoverProxies {
  		if a.connectedTo(proxy) {
  			return true
  		}
  	}
  	return false
  }
docs: // connectedToRightProxy returns true if it connected to a proxy in the
  // discover list.