From a2520203ced8bad3fe8d6c010db02932f476652d Mon Sep 17 00:00:00 2001 From: Joseph Garcia Date: Mon, 27 May 2024 06:35:44 -0700 Subject: [PATCH] lol --- src/util/homenames-helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/homenames-helper.js b/src/util/homenames-helper.js index 92e490dd..f459870e 100644 --- a/src/util/homenames-helper.js +++ b/src/util/homenames-helper.js @@ -48,9 +48,9 @@ const makeGet = (path = '', headers = {}, username) => new Promise((resolve, rej const protocol = HTTPS_ENABLED ? 'https' : 'http'; // todo: fix getPublicIP().then(publicIp => { - const host = HTTPS_ENABLED ? (getUserHash(publicIp) + '.homegames.link') : 'localhost'; const host = HTTPS_ENABLED ? (DOMAIN_NAME || (getUserHash(publicIp) + '.homegames.link')) : 'localhost'; - const base = `${protocol}://${host}:${getConfigValue('HOMENAMES_PORT')}`;//'http://localhost:' + getConfigValue('HOMENAMES_PORT'); + const base = `${protocol}://${host}:${getConfigValue('HOMENAMES_PORT')}`; + (HTTPS_ENABLED ? https : http).get(`${base}${path}`, (res) => { let buf = ''; res.on('data', (chunk) => {