mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
Add ip?
This commit is contained in:
1 parent
d6a5504e55
commit
8922ca1518
2 files changed
+1
-2
No files matched your search
@@ -73,7 +73,7 @@ router.post(
|
||||
|
||||
if (Config.get().security.cdnSignUrls) {
|
||||
const signatureData = getUrlSignature(path, req);
|
||||
finalUrl = `${finalUrl}?ex=${signatureData.expiresAt}&is=${signatureData.issuedAt}&hm=${signatureData.hash}`;
|
||||
finalUrl = `${finalUrl}?ex=${signatureData.expiresAt}&is=${signatureData.issuedAt}&hm=${signatureData.hash}&ip=${req.ip}`;
|
||||
}
|
||||
|
||||
const file = {
|
||||
|
||||
@@ -84,7 +84,6 @@ export const calculateHash = (
|
||||
ua: req.headers["user-agent"],
|
||||
includeIP: Config.get().security.cdnSignatureIncludeIp,
|
||||
ip: req.ip,
|
||||
|
||||
}, "->", hash);
|
||||
return hash;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user