(hostname: string)
| 271 | } |
| 272 | |
| 273 | private getOrCreateSecureContext(hostname: string): tls.SecureContext { |
| 274 | let context = this.certCache.get(hostname); |
| 275 | if (!context) { |
| 276 | context = createSecureContextForHost(hostname, this.ca!); |
| 277 | this.certCache.set(hostname, context); |
| 278 | } |
| 279 | return context; |
| 280 | } |
| 281 | |
| 282 | private pipeToRealTarget( |
| 283 | clientSocket: net.Socket, |
no test coverage detected