Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for SplitHostPort (0.23 sec)

  1. internal/event/target/webhook.go

    		store:      queueStore,
    		cancel:     cancel,
    		cancelCh:   ctx.Done(),
    	}
    
    	// Calculate the webhook addr with the port number format
    	target.addr = args.Endpoint.Host
    	if _, _, err := net.SplitHostPort(args.Endpoint.Host); err != nil && strings.Contains(err.Error(), "missing port in address") {
    		switch strings.ToLower(args.Endpoint.Scheme) {
    		case "http":
    			target.addr += ":80"
    		case "https":
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. internal/config/dns/etcd_dns.go

    		return nil, errors.New("invalid argument")
    	}
    
    	// strip ports off of domainIPs
    	domainIPsWithoutPorts := args.domainIPs.ApplyFunc(func(ip string) string {
    		host, _, err := net.SplitHostPort(ip)
    		if err != nil {
    			if strings.Contains(err.Error(), "missing port in address") {
    				host = ip
    			}
    		}
    		return host
    	})
    	args.domainIPs = domainIPsWithoutPorts
    
    	return args, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 15:03:08 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. cmd/sftp-server.go

    		if len(tokens) != 2 {
    			logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s", arg), "unable to start SFTP server")
    		}
    		switch tokens[0] {
    		case "address":
    			host, portStr, err := net.SplitHostPort(tokens[1])
    			if err != nil {
    				logger.Fatal(fmt.Errorf("invalid arguments passed to --sftp=%s (%v)", arg, err), "unable to start SFTP server")
    			}
    			port, err = strconv.Atoi(portStr)
    			if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. cmd/api-router.go

    	for _, domainName := range globalDomainNames {
    		if IsKubernetes() {
    			routers = append(routers, apiRouter.MatcherFunc(func(r *http.Request, match *mux.RouteMatch) bool {
    				host, _, err := net.SplitHostPort(getHost(r))
    				if err != nil {
    					host = r.Host
    				}
    				// Make sure to skip matching minio.<domain>` this is
    				// specifically meant for operator/k8s deployment
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 15:25:16 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  5. cmd/common-main.go

    			l, err := net.Listen("TCP", fmt.Sprintf(":%s", p.String()))
    			if err == nil {
    				defer l.Close()
    			}
    			consoleAddr = net.JoinHostPort("", p.String())
    		}
    
    		if _, _, err := net.SplitHostPort(consoleAddr); err != nil {
    			logger.FatalIf(err, "Unable to start listening on console port")
    		}
    
    		if consoleAddr == addr {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  6. api/go1.txt

    pkg net, func ResolveTCPAddr(string, string) (*TCPAddr, error)
    pkg net, func ResolveUDPAddr(string, string) (*UDPAddr, error)
    pkg net, func ResolveUnixAddr(string, string) (*UnixAddr, error)
    pkg net, func SplitHostPort(string) (string, string, error)
    pkg net, method (*AddrError) Error() string
    pkg net, method (*AddrError) Temporary() bool
    pkg net, method (*AddrError) Timeout() bool
    pkg net, method (*DNSConfigError) Error() string
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top