[web] Replace localhost with 127.0.0.1

This commit is contained in:
orosmatthew 2023-11-19 21:00:30 -05:00
parent 8b4309e52b
commit 467e4a02f0
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ export function startGitServer() {
}); });
repos.listen(port, { type: 'http' }, () => { repos.listen(port, { type: 'http' }, () => {
console.log(`node-git-server running at http://localhost:${port}`); console.log(`node-git-server running at http://127.0.0.1:${port}`);
gitRunning = true; gitRunning = true;
}); });
} }

View File

@ -78,7 +78,7 @@ export async function createRepos(contestId: number) {
fs: fs, fs: fs,
http, http,
dir: team.id.toString(), dir: team.id.toString(),
url: `http://localhost:${ url: `http://127.0.0.1:${
process.env.GIT_PORT ?? 7006 process.env.GIT_PORT ?? 7006
}/${contest.id.toString()}/${team.id.toString()}` }/${contest.id.toString()}/${team.id.toString()}`
}); });