File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ export function generateURL(
70
70
hostname = `[${ hostname } ]` ;
71
71
}
72
72
return (
73
- proto + hostname + ":" + port + ( baseURL || listhenOptions . baseURL || "" )
73
+ proto +
74
+ ( hostname || "localhost" ) +
75
+ ":" +
76
+ port +
77
+ ( baseURL || listhenOptions . baseURL || "" )
74
78
) ;
75
79
}
76
80
Original file line number Diff line number Diff line change @@ -130,10 +130,8 @@ export async function listen(
130
130
}
131
131
132
132
// --- GetURL Utility ---
133
- const getURL = (
134
- host = listhenOptions . hostname || "localhost" ,
135
- baseURL ?: string ,
136
- ) => generateURL ( host , listhenOptions , baseURL ) ;
133
+ const getURL = ( host = listhenOptions . hostname , baseURL ?: string ) =>
134
+ generateURL ( host , listhenOptions , baseURL ) ;
137
135
138
136
// --- Start Tunnel ---
139
137
let tunnel : Tunnel | undefined ;
You can’t perform that action at this time.
0 commit comments