From 5effb947e38db61f96c20c4471072e770d00c430 Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Tue, 9 Feb 2021 22:47:08 -0500 Subject: [PATCH] Update upload.go --- upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload.go b/upload.go index 70777ab..b49e908 100644 --- a/upload.go +++ b/upload.go @@ -92,7 +92,7 @@ func uploadPostHandler(c web.C, w http.ResponseWriter, r *http.Request) { upReq.expiry = parseExpiry(r.PostFormValue("expires")) upReq.accessKey = r.PostFormValue(accessKeyParamName) - upReq.srcIp = r.Header.get("X-Forwarded-For") + upReq.srcIp := r.Header.get("X-Forwarded-For") if r.PostFormValue("randomize") == "true" { upReq.randomBarename = true }