Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  2. 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
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
Back to top