Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 77 for hosts (0.13 sec)

  1. internal/grid/connection.go

    	c.connMu.Lock()
    	c.debugInConn = conn
    	c.connMu.Unlock()
    	if c.blockConnect != nil {
    		// Block until we are allowed to connect.
    		<-c.blockConnect
    	}
    	if req.Host != c.Remote {
    		err := fmt.Errorf("expected remote '%s', got '%s'", c.Remote, req.Host)
    		if debugPrint {
    			fmt.Println(err)
    		}
    		return err
    	}
    	if c.shouldConnect() {
    		if debugPrint {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    const (
    	dotdotComponent = ".."
    	dotComponent    = "."
    )
    
    func hasBadHost(host string) error {
    	if globalIsCICD && strings.TrimSpace(host) == "" {
    		// under CI/CD test setups ignore empty hosts as invalid hosts
    		return nil
    	}
    	_, err := xnet.ParseHost(host)
    	return err
    }
    
    // Check if the incoming path has bad path components,
    // such as ".." and "."
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. cmd/endpoint.go

    		}
    	}
    	return foundSet.ToSlice()
    }
    
    // hostsSorted will return all hosts found.
    // The LOCAL host will be nil, but the indexes of all hosts should
    // remain consistent across the cluster.
    func (l EndpointServerPools) hostsSorted() []*xnet.Host {
    	peers, localPeer := l.peers()
    	sort.Strings(peers)
    	hosts := make([]*xnet.Host, len(peers))
    	for i, hostStr := range peers {
    		if hostStr == localPeer {
    			continue
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  4. src/archive/tar/strconv_test.go

    	vectors := []struct {
    		in      string
    		wantRes string
    		wantKey string
    		wantVal string
    		ok      bool
    	}{
    		{"6 k=v\n\n", "\n", "k", "v", true},
    		{"19 path=/etc/hosts\n", "", "path", "/etc/hosts", true},
    		{"210 path=" + longName + "\nabc", "abc", "path", longName, true},
    		{"110 path=" + medName + "\n", "", "path", medName, true},
    		{"9 foo=ba\n", "", "foo", "ba", true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  5. cmd/notification.go

    	g := errgroup.WithNErrs(len(sys.peerClients))
    	for index, client := range sys.peerClients {
    		if client == nil {
    			continue
    		}
    		host := client.host.String()
    		if len(opts.hosts) > 0 {
    			if _, ok := opts.hosts[host]; !ok {
    				continue
    			}
    		}
    
    		index := index
    		g.Go(func() error {
    			var err error
    			reply[index], err = sys.peerClients[index].GetMetrics(ctx, t, opts)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  6. cmd/signature-v4_test.go

    				"X-Amz-SignedHeaders":  "host;x-amz-content-sha256;x-amz-date",
    				"X-Amz-Credential":     fmt.Sprintf(credentialTemplate, accessKeyID, now.Format(yyyymmdd), "us-west-1"),
    				"X-Amz-Content-Sha256": payloadSHA256,
    			},
    			region:   "us-west-1",
    			expected: ErrUnsignedHeaders,
    		},
    		// (3) Should fail to extract headers if the host header is not signed.
    		{
    			queryParams: map[string]string{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  7. cni/pkg/nodeagent/net.go

    	go s.ztunnelServer.Run(ctx)
    }
    
    func (s *NetServer) Stop() {
    	log.Debug("removing host iptables rules")
    	s.iptablesConfigurator.DeleteHostRules()
    
    	log.Debug("destroying host ipset")
    	s.hostsideProbeIPSet.Flush()
    	if err := s.hostsideProbeIPSet.DestroySet(); err != nil {
    		log.Warnf("could not destroy host ipset on shutdown")
    	}
    	log.Debug("stopping ztunnel server")
    	s.ztunnelServer.Close()
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 12.2K bytes
    - Viewed (1)
  8. cmd/api-router.go

    	ObjectAPI func() ObjectLayer
    }
    
    // getHost tries its best to return the request host.
    // According to section 14.23 of RFC 2616 the Host header
    // can include the port number if the default value of 80 is not used.
    func getHost(r *http.Request) string {
    	if r.URL.IsAbs() {
    		return r.URL.Host
    	}
    	return r.Host
    }
    
    func notImplementedHandler(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/envoy/configdump/listener.go

    		return cluster
    	}
    	vhosts := []string{}
    	for _, vh := range route.GetVirtualHosts() {
    		if describeDomains(vh) == "" {
    			vhosts = append(vhosts, describeRoutes(vh))
    		} else {
    			vhosts = append(vhosts, fmt.Sprintf("%s %s", describeDomains(vh), describeRoutes(vh)))
    		}
    	}
    	return fmt.Sprintf("Inline Route: %s", strings.Join(vhosts, "; "))
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Nov 29 12:37:14 GMT 2023
    - 18.1K bytes
    - Viewed (0)
  10. cmd/signature-v4-utils_test.go

    	}
    
    	// "x-amz-content-sha256" header value from the extracted result.
    	extractedContentSha256 := extractedSignedHeaders.Get("x-amz-content-sha256")
    	// "host" header value from the extracted result.
    	extractedHost := extractedSignedHeaders.Get("host")
    	//  "x-amz-date" header from the extracted result.
    	extractedDate := extractedSignedHeaders.Get("x-amz-date")
    	// extracted `expect` header.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
Back to top