Skip to content

Commit

Permalink
fix: 打开 requestCert 时不强制 https
Browse files Browse the repository at this point in the history
  • Loading branch information
SALTWOOD committed Jan 11, 2025
1 parent 5d3de24 commit efb1d51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export class Config {
});
}
defaultInstance.RATE_LIMIT = this.security.requestRateLimit;
this.server.forceHttps = this.server.requestCert || this.server.forceHttps;
}

private validateAndAssign(field: keyof Config, value: any): void {
Expand Down

0 comments on commit efb1d51

Please sign in to comment.