Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestInterfaceAddrsWithNetsh (0.3 sec)

  1. src/net/net_windows_test.go

    		if ipv4Tail.Match(f[0]) {
    			f[0] = []byte(ParseIP(string(f[0])).String())
    		}
    
    		addr = string(bytes.ToLower(bytes.TrimSpace(f[0])))
    	}
    	return addrs
    }
    
    func TestInterfaceAddrsWithNetsh(t *testing.T) {
    	checkNetsh(t)
    
    	outIPV4, err := runCmd("netsh", "interface", "ipv4", "show", "address")
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
Back to top