Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Jan 27, 2024
1 parent c0c943a commit 5228b3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/haproxyTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ function createAppsHaproxyConfig(appConfig) {
const domainBackend = generateDomainBackend(app, 'tcp');
minecraftAppsMap[port].acls = minecraftAppsMap[port].acls.concat(tempMinecraftACLs);
minecraftAppsMap[port].usebackends.push(` use_backend ${domainUsed}_tcp_backend if ${domainUsed}\n`);
minecraftAppsMap[port].backends.push(domainBackend);
if (!minecraftAppsMap[port].backends.includes(domainBackend)) {
minecraftAppsMap[port].backends.push(domainBackend);
}
} else {
const domainUsed = app.domain.split('.').join('');
if (usebackends.includes(` use_backend ${domainUsed}backend if ${domainUsed}\n`)) {
Expand Down

0 comments on commit 5228b3d

Please sign in to comment.