Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IsLoopback (0.15 sec)

  1. cmd/net.go

    		// This case is needed when all ips in the list
    		// have same last octets, Following just ensures that
    		// 127.0.0.1 is moved to the end of the list.
    		if ipV4s[i].IsLoopback() {
    			return false
    		}
    		if ipV4s[j].IsLoopback() {
    			return true
    		}
    		return []byte(ipV4s[i].To4())[3] > []byte(ipV4s[j].To4())[3]
    	})
    
    	var ips []string
    	for _, ip := range ipV4s {
    		ips = append(ips, ip.String())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. internal/http/dial_linux.go

    					address = h
    				}
    				// Create socket on specific vrf device.
    				// To catch all kinds of special cases this filters specifically for loopback networks.
    				if ip := net.ParseIP(address); ip != nil && !ip.IsLoopback() {
    					_ = syscall.SetsockoptString(fd, syscall.SOL_SOCKET, syscall.SO_BINDTODEVICE, opts.Interface)
    				}
    			}
    		})
    		return nil
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 4.3K bytes
    - Viewed (3)
  3. cmd/endpoint.go

    	hostIPs, err := getHostIP(endpoint.Hostname())
    	if err != nil {
    		return false
    	}
    	var loopback int
    	for _, hostIP := range hostIPs.ToSlice() {
    		if net.ParseIP(hostIP).IsLoopback() {
    			loopback++
    		}
    	}
    	return loopback == len(hostIPs)
    }
    
    // UpdateIsLocal - resolves the host and discovers the local host.
    func (endpoints Endpoints) UpdateIsLocal() error {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  4. cmd/endpoint_test.go

    	}()
    	globalMinioPort = "9000"
    
    	// Filter ipList by IPs those do not start with '127.'.
    	nonLoopBackIPs := localIP4.FuncMatch(func(ip string, matchString string) bool {
    		return !net.ParseIP(ip).IsLoopback()
    	}, "")
    	if len(nonLoopBackIPs) == 0 {
    		t.Fatalf("No non-loop back IP address found for this host")
    	}
    	nonLoopBackIP := nonLoopBackIPs.ToSlice()[0]
    
    	mustAbs := func(s string) string {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jan 13 07:53:03 GMT 2024
    - 18.9K bytes
    - Viewed (1)
  5. cmd/server-main.go

    	// Use a string set to avoid duplication
    	addrs := set.NewStringSet()
    	// Listen on local interface to receive requests from Console
    	for _, ip := range mustGetLocalIPs() {
    		if ip != nil && ip.IsLoopback() {
    			addrs.Add(net.JoinHostPort(ip.String(), globalMinioPort))
    		}
    	}
    	host, _ := mustSplitHostPort(globalMinioAddr)
    	if host != "" {
    		ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
Back to top