From af5725a310935f77f5ee40c28415e156e6c6097b Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sun, 31 Jul 2022 11:52:11 +0200 Subject: [PATCH] add config to getip --- extra_modules/getip.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extra_modules/getip.js b/extra_modules/getip.js index 5c57c7c..d8211e3 100644 --- a/extra_modules/getip.js +++ b/extra_modules/getip.js @@ -1,3 +1,6 @@ +const fs = require('fs'); +const config = JSON.parse(fs.readFileSync("server_config.json")) + /** * gets ip of a request * @param {request} req