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 e05784e commit bc13b63Copy full SHA for bc13b63
src/caddy/index.ts
@@ -175,9 +175,9 @@ export class CaddyInstant {
175
if (!this.inited)
176
await this.init()
177
178
- if (await tryPort(443))
+ if (https && await tryPort(443))
179
await kill(443, 'tcp')
180
- if (process.platform === 'win32' && await tryPort(80))
+ if ((process.platform === 'win32' || !https) && await tryPort(80))
181
await kill(80, 'tcp')
182
183
if (!await this.updateHost(source.split(':')[0], target.split(':')[0]))
0 commit comments