code: func (cm *connectMethod) tlsHost() string {
  	h := cm.targetAddr
  	if hasPort(h) {
  		h = h[:strings.LastIndex(h, ":")]
  	}
  	return h
  }
docs: // tlsHost returns the host name to match against the peer's
  // TLS certificate.