Update s3.go

This commit is contained in:
ZizzyDizzyMC 2021-02-09 23:10:35 -05:00
parent 2624427b6c
commit 26aeb87d42
1 changed files with 2 additions and 1 deletions

View File

@ -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