Fix broken shit after dep updates

This commit is contained in:
Jonathan Cremin 2020-06-14 22:29:04 +01:00
parent 7878346910
commit d89c8872d2
15 changed files with 1169 additions and 713 deletions

View file

@ -26,6 +26,7 @@ export default class Uploader {
this.expectedSize = context.request.headers['content-length'];
this.tempGuid = context.request.headers['hostr-guid'];
this.remoteIp = context.request.headers['x-forwarded-for'] || context.req.connection.remoteAddress;
this.remoteIp = this.remoteIp.split(',')[0];
this.md5sum = crypto.createHash('md5');
this.lastPercent = 0;