This commit is contained in:
Benjamin Toby
2024-11-27 12:23:44 +01:00
parent d13ba5057b
commit 551f4ec130
271 changed files with 562 additions and 512 deletions
@@ -8,6 +8,7 @@ const http = require("http");
* @property {string} host
* @property {number | string} port
* @property {typeof http | typeof https} scheme
* @property {string | number} user_id
*/
/**
@@ -29,6 +30,7 @@ function grabHostNames() {
host: remoteHost || localHost || "datasquirel.com",
port: remoteHostPort || localHostPort || 443,
scheme: scheme?.match(/^http$/i) ? http : https,
user_id: String(process.env.DSQL_API_USER_ID || 0),
};
}