Skip to content

Commit

Permalink
Add http 3 option
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 16, 2024
1 parent 78efafb commit 3e98418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/executor/runnersub.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ export async function runConfigSubdomain(config, domaindata, subdomain, sshExec,
var nginxNodes = await nginxExec.get(subdomain);
var nginxInfos = nginxExec.extractInfo(nginxNodes, subdomain);
value = parseInt(value);
if (![1, 2].includes(value)) {
throw new Error(`http option invalid. specify "http 1" or "http 2"`);
if (![1, 2, 3].includes(value)) {
throw new Error(`http option invalid. specify "http 1", "http 2" or "http 3"`);
}
if (value === nginxInfos.http) {
await writeLog("$> http version config is set unchanged");
Expand Down

0 comments on commit 3e98418

Please sign in to comment.