Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 433 for lmhosts (0.13 sec)

  1. src/net/hosts.go

    			}
    		}
    	}
    	// Update the data cache.
    	hosts.expire = now.Add(cacheMaxAge)
    	hosts.path = hp
    	hosts.byName = hs
    	hosts.byAddr = is
    	hosts.mtime = mtime
    	hosts.size = size
    }
    
    // lookupStaticHost looks up the addresses and the canonical name for the given host from /etc/hosts.
    func lookupStaticHost(host string) ([]string, string) {
    	hosts.Lock()
    	defer hosts.Unlock()
    	readHosts()
    	if len(hosts.byName) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/httproute.go

    	// Add the uniqueHost.
    	vhosts = appendDomainPort(vhosts, uniqueHostname, port)
    	if len(uniqueHostnameParts) == 2 {
    		// This is the case of uniqHostname having namespace already.
    		dnsHostName := uniqueHostname + "." + sharedDNSDomainParts[0]
    		vhosts = appendDomainPort(vhosts, dnsHostName, port)
    	}
    	return vhosts
    }
    
    // portNoAppendPortSuffix is a signal to not append port to vhost
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. pkg/dns/client/dns.go

    			// that is likely to be already present in the altHosts
    			if _, exists := altHosts[expandedHost]; !exists {
    				table.cname[expandedHost] = cname(expandedHost, h)
    				table.allHosts.Insert(expandedHost)
    			}
    		}
    	}
    }
    
    // Borrowed from https://github.com/coredns/coredns/blob/master/plugin/hosts/hosts.go
    // a takes a slice of ip string and returns a slice of A RRs.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. pkg/config/analysis/analyzers/virtualservice/gateways.go

    	for i, h := range server.Hosts {
    		if strings.Contains(h, "/") {
    			parts := strings.Split(h, "/")
    			if parts[0] == "." {
    				server.Hosts[i] = fmt.Sprintf("%s/%s", namespace, parts[1])
    			} else if parts[0] == "*" {
    				if parts[1] == "*" {
    					server.Hosts = []string{"*"}
    					return
    				}
    				server.Hosts[i] = parts[1]
    			}
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 05 01:28:52 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. pilot/pkg/model/sidecar_test.go

    		})
    	}
    	ps.ServiceIndex.public = svcList
    
    	hosts := make([]string, 0)
    	if matchAll {
    		// default/*
    		hosts = append(hosts, "default/*")
    	} else {
    		// default/xx or default/*.xx
    		for i := 0; i < hostNum; i++ {
    			h := "default/" + wildcard + "host-" + strconv.Itoa(i) + ".com"
    			hosts = append(hosts, h)
    		}
    	}
    
    	istioListener := &networking.IstioEgressListener{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  6. pilot/pkg/model/sidecar.go

    		}
    
    		// exact hosts are saved separately for map lookup
    		if !hName.IsWildCarded() {
    			hostsByNamespace[ns].exactHosts.Insert(hName)
    		}
    
    		// allHosts contains the exact hosts and wildcard hosts,
    		// since SelectVirtualServices will use `Matches` semantic matching.
    		hc := hostsByNamespace[ns]
    		hc.allHosts = append(hc.allHosts, hName)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 20:32:23 UTC 2024
    - 38.4K bytes
    - Viewed (0)
  7. pilot/pkg/networking/core/route/route_test.go

    		}
    
    		vhosts := route.BuildSidecarVirtualHostWrapper(nil, node(cg), cg.PushContext(), serviceRegistry,
    			[]config.Config{virtualServiceWithGoogleWildcardHost}, 80, wildcardIndex,
    		)
    		// The service hosts (*.example.org and goodbye.hello.example.org) and the unattached VS host (*.google.com)
    		g.Expect(vhosts).To(HaveLen(3))
    		for _, vhost := range vhosts {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/route/route.go

    	wchosts := make([]host.Name, 0)
    
    	// As a performance optimization, process non wildcard hosts first, so that they can be
    	// looked up directly in the service registry map.
    	for _, hostname := range rule.Hosts {
    		vshost := host.Name(hostname)
    		if vshost.IsWildCarded() {
    			// We'll process wild card hosts later
    			wchosts = append(wchosts, vshost)
    			continue
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
  9. pilot/pkg/networking/core/gateway.go

    			virtualServiceHosts := host.NewNames(virtualService.Spec.(*networking.VirtualService).Hosts)
    			serverHosts := host.NamesForNamespace(server.Hosts, virtualService.Namespace)
    
    			// We have two cases here:
    			// 1. virtualService hosts are 1.foo.com, 2.foo.com, 3.foo.com and server hosts are ns/*.foo.com
    			// 2. virtualService hosts are *.foo.com, and server hosts are ns/1.foo.com, ns/2.foo.com, ns/3.foo.com
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  10. pilot/pkg/config/kube/gateway/conversion.go

    					parent.OriginalReference.Name, ptr.OrDefault(parent.OriginalReference.Namespace, k8s.Namespace(obj.Namespace)), ctx.Domain)
    				vsHosts = []string{host}
    			}
    			routes = augmentTLSPortMatch(routes, parent.OriginalReference.Port, vsHosts)
    		}
    
    		for i, host := range vsHosts {
    			name := fmt.Sprintf("%s-tls-%d-%s", obj.Name, i, constants.KubernetesGatewayName)
    			filteredRoutes := routes
    			if parent.IsMesh() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
Back to top