We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b873d5 commit c508e5aCopy full SHA for c508e5a
src/proxy/proxy.js
@@ -233,6 +233,12 @@ class Proxy {
233
callback(res)
234
}
235
236
+ listening() {
237
+ const isHttp = this.config.mode === "http" || this.config.mode === "http-https"
238
+ const isHttps = this.config.mode === "https" || this.config.mode === "http-https"
239
+ if (!(isHttp || isHttps)) return false
240
+ return (!isHttp || this.server?.listening || false) && (!isHttps || this.mitm?.httpServer?.listening || false)
241
+ }
242
243
async start() {
244
cacher.loadCached()
0 commit comments