Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mustSplitHostPort (0.15 sec)

  1. cmd/storage-rest_test.go

    	// Remote URL
    	url, err := xnet.ParseHTTPURL(tg.Servers[1].URL)
    	if err != nil {
    		t.Fatalf("unexpected error %v", err)
    	}
    	url.Path = t.TempDir()
    
    	globalMinioHost, globalMinioPort = mustSplitHostPort(url.Host)
    	globalNodeAuthToken, _ = authenticateNode(globalActiveCred.AccessKey, globalActiveCred.SecretKey)
    
    	endpoint, err := NewEndpoint(url.String())
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Apr 09 14:28:39 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. cmd/common-main.go

    	}
    
    	globalMinioHost, globalMinioPort = mustSplitHostPort(addr)
    	if globalMinioPort == "0" {
    		p, err := xnet.GetFreePort()
    		if err != nil {
    			logger.FatalIf(err, "Unable to get free port for S3 API on the host")
    		}
    		globalMinioPort = p.String()
    		globalDynamicAPIPort = true
    	}
    
    	if globalBrowserEnabled {
    		globalMinioConsoleHost, globalMinioConsolePort = mustSplitHostPort(consoleAddr)
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  3. cmd/endpoint.go

    	for _, ep := range l {
    		for _, endpoint := range ep.Endpoints {
    			if endpoint.Type() != URLEndpointType {
    				continue
    			}
    
    			peer := endpoint.Host
    			if endpoint.IsLocal {
    				if _, port := mustSplitHostPort(peer); port == globalMinioPort {
    					if local == "" {
    						local = peer
    					}
    				}
    			}
    
    			allSet.Add(peer)
    		}
    	}
    
    	return allSet.ToSlice(), local
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 34.4K bytes
    - Viewed (0)
  4. cmd/server-main.go

    	globalInternodeInterfaceOnce.Do(func() {
    		if interfaceName != "" {
    			globalInternodeInterface = interfaceName
    			return
    		}
    		ip := "127.0.0.1"
    		host, _ := mustSplitHostPort(globalLocalNodeName)
    		if host != "" {
    			if net.ParseIP(host) != nil {
    				ip = host
    			} else {
    				ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
    				defer cancel()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue May 27 15:18:36 UTC 2025
    - 35.9K bytes
    - Viewed (4)
Back to top