Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isLocalHost (0.06 sec)

  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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (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
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top