Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetSourceIPRaw (0.19 sec)

  1. internal/handlers/proxy.go

    			// 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.
    // however returns without bracketing.
    func GetSourceIPRaw(r *http.Request) string {
    	addr := GetSourceIPFromHeaders(r)
    	if addr == "" {
    		addr = r.RemoteAddr
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  2. cmd/bucket-policy.go

    		"CurrentTime":      {currTime.Format(time.RFC3339)},
    		"EpochTime":        {strconv.FormatInt(currTime.Unix(), 10)},
    		"SecureTransport":  {strconv.FormatBool(r.TLS != nil)},
    		"SourceIp":         {handlers.GetSourceIPRaw(r)},
    		"UserAgent":        {r.UserAgent()},
    		"Referer":          {r.Referer()},
    		"principaltype":    {principalType},
    		"userid":           {username},
    		"username":         {username},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
Back to top