Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
prosif committed May 27, 2024
1 parent 67dffa1 commit a252020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/homenames-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit a252020

Please sign in to comment.