fix socket path

This commit is contained in:
wkj 2024-04-28 13:10:55 +08:00
parent a8d4e25e9c
commit d48254f9e0
2 changed files with 2 additions and 6 deletions

View File

@ -179,9 +179,7 @@ async function startup(path, connector, omitWatchers, omitTimers, routine) {
const { response } = ctx;
response.body = {
url,
path: nginx?.socketPath
? `/${nginx.socketPath}`
: '' + connector.getSubscribeRouter(),
path: (nginx?.socketPath ? `/${nginx.socketPath}` : '') + connector.getSubscribeRouter(),
};
return;
});

View File

@ -238,9 +238,7 @@ export async function startup<ED extends EntityDict & BaseEntityDict, FrontCxt e
const { response } = ctx;
response.body = {
url,
path: nginx?.socketPath
? `/${nginx.socketPath}`
: '' + connector.getSubscribeRouter(),
path: (nginx?.socketPath ? `/${nginx.socketPath}`: '') + connector.getSubscribeRouter(),
};
return;
});