Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustGetLocalIP4 (0.65 sec)

  1. cmd/net_test.go

    func TestMustGetLocalIP4(t *testing.T) {
    	testCases := []struct {
    		expectedIPList set.StringSet
    	}{
    		{set.CreateStringSet("127.0.0.1")},
    	}
    
    	for _, testCase := range testCases {
    		ipList := mustGetLocalIP4()
    		if testCase.expectedIPList != nil && testCase.expectedIPList.Intersection(ipList).IsEmpty() {
    			t.Fatalf("host: expected = %v, got = %v", testCase.expectedIPList, ipList)
    		}
    	}
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  2. cmd/common-main.go

    			}
    			domainIPs.Add(endpoint)
    		}
    		updateDomainIPs(domainIPs)
    	} else {
    		// Add found interfaces IP address to global domain IPS,
    		// loopback addresses will be naturally dropped.
    		domainIPs := mustGetLocalIP4()
    		for _, host := range globalEndpoints.Hostnames() {
    			domainIPs.Add(host)
    		}
    		updateDomainIPs(domainIPs)
    	}
    
    	// In place update is true by default if the MINIO_UPDATE is not set
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top