Skip to content

Commit

Permalink
use getURL also for socket path
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastercuber committed Aug 16, 2023
1 parent 67efb76 commit 1148009
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/listen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,14 @@ export async function listen(
const urls: ListenURL[] = [];
const baseURL = getURLOptions?.baseURL || listhenOptions.baseURL || "";

if (listhenOptions.ipc !== "_____") {
urls.push({
url: ipcSocket,
type: "local",
});
return urls;
}

// Add local URL
urls.push({
url: getURL("localhost", baseURL),
type: "local",
});
if (listhenOptions.ipc !== "_____") {
return urls;
}

Check warning on line 171 in src/listen.ts

View check run for this annotation

Codecov / codecov/patch

src/listen.ts#L170-L171

Added lines #L170 - L171 were not covered by tests

// Add public URL
const publicURL =
Expand Down

0 comments on commit 1148009

Please sign in to comment.