fix(Port80Handler): Restrict ACME HTTP-01 challenge handling to domains with acmeMaintenance or acmeForward enabled
This commit is contained in:
		| @@ -3,6 +3,6 @@ | ||||
|  */ | ||||
| export const commitinfo = { | ||||
|   name: '@push.rocks/smartproxy', | ||||
|   version: '4.2.5', | ||||
|   version: '4.2.6', | ||||
|   description: 'A powerful proxy package that effectively handles high traffic, with features such as SSL/TLS support, port proxying, WebSocket handling, dynamic routing with authentication options, and automatic ACME certificate management.' | ||||
| } | ||||
|   | ||||
| @@ -408,7 +408,7 @@ export class Port80Handler extends plugins.EventEmitter { | ||||
|     const options = domainInfo.options; | ||||
|  | ||||
|     // If the request is for an ACME HTTP-01 challenge, handle it | ||||
|     if (req.url && req.url.startsWith('/.well-known/acme-challenge/')) { | ||||
|     if (req.url && req.url.startsWith('/.well-known/acme-challenge/') && (options.acmeMaintenance || options.acmeForward)) { | ||||
|       // Check if we should forward ACME requests | ||||
|       if (options.acmeForward) { | ||||
|         this.forwardRequest(req, res, options.acmeForward, 'ACME challenge'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user