Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for strip (0.17 sec)

  1. cmd/signature-v4-parser.go

    	ch, s3Err := parseCredentialHeader("Credential="+r.Form.Get(xhttp.AmzCredential), region, stype)
    	if s3Err != ErrNone {
    		// Strip off the Algorithm prefix.
    		v4Auth := strings.TrimPrefix(r.Header.Get("Authorization"), signV4Algorithm)
    		authFields := strings.Split(strings.TrimSpace(v4Auth), ",")
    		if len(authFields) != 3 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  2. internal/handlers/proxy.go

    		// extract the first, which should be the client IP.
    		if match := forRegex.FindStringSubmatch(fwd); len(match) > 1 {
    			// IPv6 addresses in Forwarded headers are quoted-strings. We strip
    			// these quotes.
    			addr = strings.Trim(match[1], `"`)
    		}
    	}
    
    	return addr
    }
    
    // GetSourceIPRaw retrieves the IP from the request headers
    // and falls back to r.RemoteAddr when necessary.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  3. internal/logger/console.go

    	quiet(msg string, args ...interface{})
    	pretty(msg string, args ...interface{})
    }
    
    func consoleLog(console Logger, msg string, args ...interface{}) {
    	switch {
    	case jsonFlag:
    		// Strip escape control characters from json message
    		msg = ansiRE.ReplaceAllLiteralString(msg, "")
    		console.json(msg, args...)
    	case quietFlag:
    		if len(msg) != 0 && len(args) == 0 {
    			args = append(args, msg)
    			msg = "%s"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  4. cmd/server-startup-msg.go

    // Returns true if input is IPv6
    func isIPv6(host string) bool {
    	h, _, err := net.SplitHostPort(host)
    	if err != nil {
    		h = host
    	}
    	ip := net.ParseIP(h)
    	return ip.To16() != nil && ip.To4() == nil
    }
    
    // strip api endpoints list with standard ports such as
    // port "80" and "443" before displaying on the startup
    // banner.  Returns a new list of API endpoints.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  5. internal/config/dns/types.go

    	// a srv.Target domain name.  Normally we convert the full Key where
    	// the record lives to a DNS name and use this as the srv.Target. When
    	// TargetStrip > 0 we strip the left most TargetStrip labels from the
    	// DNS name.
    	TargetStrip int `json:"targetstrip,omitempty"`
    
    	// Group is used to group (or *not* to group) different services
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2K bytes
    - Viewed (0)
  6. cmd/net.go

    }
    
    // isHostIP - helper for validating if the provided arg is an ip address.
    func isHostIP(ipAddress string) bool {
    	host, _, err := net.SplitHostPort(ipAddress)
    	if err != nil {
    		host = ipAddress
    	}
    	// Strip off IPv6 zone information.
    	if i := strings.Index(host, "%"); i > -1 {
    		host = host[:i]
    	}
    	return net.ParseIP(host) != nil
    }
    
    // extractHostPort - extracts host/port from many address formats
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  7. internal/config/dns/etcd_dns.go

    	}
    
    	for _, setter := range setters {
    		setter(args)
    	}
    
    	if len(args.domainNames) == 0 || args.domainIPs.IsEmpty() {
    		return nil, errors.New("invalid argument")
    	}
    
    	// strip ports off of domainIPs
    	domainIPsWithoutPorts := args.domainIPs.ApplyFunc(func(ip string) string {
    		host, _, err := net.SplitHostPort(ip)
    		if err != nil {
    			if strings.Contains(err.Error(), "missing port in address") {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  8. docs/erasure/README.md

    The drives should all be of approximately the same size.
    
    ## Get Started with MinIO in Erasure Code
    
    ### 1. Prerequisites
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Sep 29 04:28:45 GMT 2022
    - 4.1K bytes
    - Viewed (0)
  9. internal/rest/client.go

    // return true if the string includes a port.
    func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") }
    
    // removeEmptyPort strips the empty port in ":port" to ""
    // as mandated by RFC 3986 Section 6.2.3.
    func removeEmptyPort(host string) string {
    	if hasPort(host) {
    		return strings.TrimSuffix(host, ":")
    	}
    	return host
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  10. internal/s3select/csv/testdata/testdata.zip

    nyc-taxi-data-100k.csv trip_id vendor_id pickup_datetime dropoff_datetime store_and_fwd_flag rate_code_id pickup_longitude pickup_latitude dropoff_longitude dropoff_latitude passenger_count trip_distance fare_amount extra mta_tax tip_amount tolls_amount ehail_fee improvement_surcharge total_amount payment_type trip_type pickup dropoff cab_type precipitation snow_depth snowfall max_temp min_temp wind pickup_nyct2010_gid pickup_ctlabel pickup_borocode pickup_boroname pickup_ct2010 pickup_boroct2010...
    ZIP Archive
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 111.6K bytes
    - Viewed (0)
Back to top