Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for isLocalHost (0.04 seconds)

  1. cmd/endpoint.go

    }
    
    // UpdateIsLocal - resolves the host and updates if it is local or not.
    func (endpoint *Endpoint) UpdateIsLocal() (err error) {
    	if endpoint.Host != "" {
    		endpoint.IsLocal, err = isLocalHost(endpoint.Hostname(), endpoint.Port(), globalMinioPort)
    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // SetPoolIndex sets a specific pool number to this node
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.5K bytes
    - Click Count (0)
  2. cmd/admin-bucket-handlers.go

    	if err = json.Unmarshal(reqBytes, &target); err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrAdminConfigBadJSON, err), r.URL)
    		return
    	}
    	sameTarget, _ := isLocalHost(target.URL().Hostname(), target.URL().Port(), globalMinioPort)
    	if sameTarget && bucket == target.TargetBucket {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrBucketRemoteIdenticalToSource), r.URL)
    		return
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 33.3K bytes
    - Click Count (0)
Back to Top