[web] Replace localhost with 127.0.0.1
This commit is contained in:
parent
8b4309e52b
commit
467e4a02f0
@ -29,7 +29,7 @@ export function startGitServer() {
|
||||
});
|
||||
|
||||
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;
|
||||
});
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ export async function createRepos(contestId: number) {
|
||||
fs: fs,
|
||||
http,
|
||||
dir: team.id.toString(),
|
||||
url: `http://localhost:${
|
||||
url: `http://127.0.0.1:${
|
||||
process.env.GIT_PORT ?? 7006
|
||||
}/${contest.id.toString()}/${team.id.toString()}`
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user