Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for isDomainName (0.16 sec)

  1. src/net/dnsclient_unix.go

    }
    
    func (conf *resolverConfig) releaseSema() {
    	<-conf.ch
    }
    
    func (r *Resolver) lookup(ctx context.Context, name string, qtype dnsmessage.Type, conf *dnsConfig) (dnsmessage.Parser, string, error) {
    	if !isDomainName(name) {
    		// We used to use "invalid domain name" as the error,
    		// but that is a detail of the specific lookup mechanism.
    		// Other lookups might allow broader name syntax
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. src/net/lookup.go

    	if err != nil {
    		return "", nil, err
    	}
    	if cname != "" && !isDomainName(cname) {
    		return "", nil, &DNSError{Err: "SRV header name is invalid", Name: name}
    	}
    	filteredAddrs := make([]*SRV, 0, len(addrs))
    	for _, addr := range addrs {
    		if addr == nil {
    			continue
    		}
    		if !isDomainName(addr.Target) {
    			continue
    		}
    		filteredAddrs = append(filteredAddrs, addr)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  3. src/net/http/cookie.go

    	return t.Year() >= 1601
    }
    
    // isCookieDomainName reports whether s is a valid domain name or a valid
    // domain name with a leading dot '.'.  It is almost a direct copy of
    // package net's isDomainName.
    func isCookieDomainName(s string) bool {
    	if len(s) == 0 {
    		return false
    	}
    	if len(s) > 255 {
    		return false
    	}
    
    	if s[0] == '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:33:05 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. cmd/common-main.go

    		}
    		globalRootDiskThreshold = size
    	}
    
    	domains := env.Get(config.EnvDomain, "")
    	if len(domains) != 0 {
    		for _, domainName := range strings.Split(domains, config.ValueSeparator) {
    			if _, ok := dns2.IsDomainName(domainName); !ok {
    				logger.Fatal(config.ErrInvalidDomainValue(nil).Msg("Unknown value `%s`", domainName),
    					"Invalid MINIO_DOMAIN value in environment variable")
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 31.5K bytes
    - Viewed (0)
Back to top