Skip to content

Commit

Permalink
fix r bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTrunk committed Dec 18, 2023
1 parent c73ccec commit abaf031
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/services/haproxyTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ backend ${domainUsed}backend
}
} else { // set new IP as main
mapOfNamesIps[app.name] = selectIPforR(app.ips);
domainBackend += ' inter 10s fall 3 rise 99999999';
if (mapOfNamesIps[app.name] === ip) {
domainBackend += ' inter 10s fall 3 rise 99999999';
} else {
domainBackend += ' backup';
}
}
}
if (app.timeout) {
Expand Down

0 comments on commit abaf031

Please sign in to comment.