Skip to content

Commit ebcb6ef

Browse files
committed
fix: listen source error
1 parent e011972 commit ebcb6ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/caddy/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export class CaddyInstant {
153153
* @returns
154154
*/
155155
async run(source: string, target: string, options?: Partial<RunOptions>) {
156+
source = source.replace('0.0.0.0', '127.0.0.1').replace('localhost', '127.0.0.1')
156157
const {
157158
restore = false,
158159
base = '/',

0 commit comments

Comments
 (0)