Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetPrivateIPs (0.16 sec)

  1. pilot/pkg/util/network/ip.go

    // ErrResolveNoAddress error occurs when IP address resolution is attempted,
    // but no address was provided.
    var ErrResolveNoAddress = fmt.Errorf("no address specified")
    
    // GetPrivateIPs blocks until private IP addresses are available, or a timeout is reached.
    func GetPrivateIPs(ctx context.Context) ([]string, bool) {
    	if _, ok := ctx.Deadline(); !ok {
    		var cancel context.CancelFunc
    		ctx, cancel = context.WithTimeout(ctx, waitTimeout)
    		defer cancel()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 21 21:27:21 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. pkg/test/echo/server/instance.go

    	}
    	// Binding to "localhost" will only bind to a single address (v4 or v6). We want both, so we need
    	// to be explicit
    	v4, v6 := false, false
    	// Obtain all the IPs from the node
    	ipAddrs, ok := network.GetPrivateIPs(context.Background())
    	if !ok {
    		return []string{ip}
    	}
    	for _, ip := range ipAddrs {
    		addr, err := netip.ParseAddr(ip)
    		if err != nil {
    			// Should not happen
    			continue
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 07:54:01 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. pilot/cmd/pilot-agent/app/cmd.go

    		proxyArgs.IPAddresses = []string{podIP.String()}
    	}
    
    	// Obtain all the IPs from the node
    	proxyAddrs := make([]string, 0)
    	if ipAddrs, ok := network.GetPrivateIPs(context.Background()); ok {
    		proxyAddrs = append(proxyAddrs, ipAddrs...)
    	}
    
    	// No IP addresses provided, append 127.0.0.1 for ipv4 and ::1 for ipv6
    	if len(proxyAddrs) == 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 11.9K bytes
    - Viewed (0)
Back to top