From 26aeb87d42302ee69e4192184e58b232641e1c8e Mon Sep 17 00:00:00 2001 From: ZizzyDizzyMC Date: Tue, 9 Feb 2021 23:10:35 -0500 Subject: [PATCH] Update s3.go --- backends/s3/s3.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/s3/s3.go b/backends/s3/s3.go index a558779..58ccd14 100644 --- a/backends/s3/s3.go +++ b/backends/s3/s3.go @@ -125,6 +125,7 @@ func mapMetadata(m backends.Metadata) map[string]*string { "Mimetype": aws.String(m.Mimetype), "Sha256sum": aws.String(m.Sha256sum), "AccessKey": aws.String(m.AccessKey), + "SrcIp": aws.String(m.SrcIp), } } @@ -155,7 +156,7 @@ func unmapMetadata(input map[string]*string) (m backends.Metadata, err error) { return } -func (b S3Backend) Put(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string) (m backends.Metadata, err error) { +func (b S3Backend) Put(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string, srcIp string) (m backends.Metadata, err error) { tmpDst, err := ioutil.TempFile("", "linx-server-upload") if err != nil { return m, err