Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for 443 (0.14 sec)

  1. cmd/server-startup-msg.go

    	h, _, err := net.SplitHostPort(host)
    	if err != nil {
    		h = host
    	}
    	ip := net.ParseIP(h)
    	return ip.To16() != nil && ip.To4() == nil
    }
    
    // strip api endpoints list with standard ports such as
    // port "80" and "443" before displaying on the startup
    // banner.  Returns a new list of API endpoints.
    func stripStandardPorts(apiEndpoints []string, host string) (newAPIEndpoints []string) {
    	if len(apiEndpoints) == 1 {
    		return apiEndpoints
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. cmd/server-startup-msg_test.go

    	}
    }
    
    // Tests stripping standard ports from apiEndpoints.
    func TestStripStandardPorts(t *testing.T) {
    	apiEndpoints := []string{"http://127.0.0.1:9000", "http://127.0.0.2:80", "https://127.0.0.3:443"}
    	expectedAPIEndpoints := []string{"http://127.0.0.1:9000", "http://127.0.0.2", "https://127.0.0.3"}
    	newAPIEndpoints := stripStandardPorts(apiEndpoints, "")
    
    	if !reflect.DeepEqual(expectedAPIEndpoints, newAPIEndpoints) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 4K bytes
    - Viewed (0)
  3. internal/config/errors.go

    		"--address input is invalid",
    		"Please check --address parameter",
    		`--address binds to a specific ADDRESS:PORT, ADDRESS can be an IPv4/IPv6 address or hostname (default port is ':9000')
    	Examples: --address ':443'
    		  --address '172.16.34.31:9000'
    		  --address '[fe80::da00:a6c8:e3ae:ddd7]:9000'`,
    	)
    
    	ErrInvalidEndpoint = newErrFn(
    		"Invalid endpoint for single drive mode",
    		"Please check the endpoint",
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 18 22:25:32 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. cmd/endpoint_test.go

    		// Erasure Single Drive
    		{"localhost:9000", []string{"http://localhost/d1"}, "", Endpoints{}, -1, fmt.Errorf("use path style endpoint for SD setup")},
    		{":443", []string{"/d1"}, ":443", Endpoints{Endpoint{URL: &url.URL{Path: mustAbs("/d1")}, IsLocal: true}}, ErasureSDSetupType, nil},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  5. internal/handlers/forwarder.go

    	if req == nil {
    		return ""
    	}
    
    	if _, port, err := net.SplitHostPort(req.Host); err == nil && port != "" {
    		return port
    	}
    
    	if req.TLS != nil {
    		return "443"
    	}
    
    	return "80"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 07 05:42:10 GMT 2023
    - 5.6K bytes
    - Viewed (0)
  6. cmd/net_test.go

    	testCases := []struct {
    		hostPort     string
    		expectedHost string
    		expectedPort string
    	}{
    		{":54321", "", "54321"},
    		{"server:54321", "server", "54321"},
    		{":0", "", "0"},
    		{"server:https", "server", "443"},
    		{"server:http", "server", "80"},
    	}
    
    	for _, testCase := range testCases {
    		host, port := mustSplitHostPort(testCase.hostPort)
    		if testCase.expectedHost != host {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 08:43:09 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. cmd/http-tracer.go

    		}
    
    		// Calculate node name
    		nodeName := r.Host
    		if globalIsDistErasure {
    			nodeName = globalLocalNodeName
    		}
    		if host, port, err := net.SplitHostPort(nodeName); err == nil {
    			if port == "443" || port == "80" {
    				nodeName = host
    			}
    		}
    
    		// Calculate reqPath
    		reqPath := r.URL.RawPath
    		if reqPath == "" {
    			reqPath = r.URL.Path
    		}
    
    		// Calculate function name
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  8. cmd/net.go

    	if err != nil {
    		if !strings.Contains(err.Error(), "missing port in address") {
    			return "", "", err
    		}
    
    		host = addr
    
    		switch scheme {
    		case "https":
    			port = "443"
    		case "http":
    			port = "80"
    		default:
    			return "", "", errors.New("unable to guess port from scheme")
    		}
    	}
    
    	return host, port, nil
    }
    
    // isLocalHost - checks if the given parameter
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. internal/event/target/webhook.go

    		switch strings.ToLower(args.Endpoint.Scheme) {
    		case "http":
    			target.addr += ":80"
    		case "https":
    			target.addr += ":443"
    		default:
    			return nil, errors.New("unsupported scheme")
    		}
    	}
    
    	if target.store != nil {
    		store.StreamItems(target.store, target, target.cancelCh, target.loggerOnce)
    	}
    
    	return target, nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Nov 20 22:40:07 GMT 2023
    - 8.5K bytes
    - Viewed (0)
Back to top