Skip to content

Commit

Permalink
fix: adjust listening host to support ipv6 (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten authored Oct 26, 2023
1 parent 14fee95 commit a7ff5a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/app/server/api/auth/login.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export default defineEventHandler(async (event) => {
});

try {
await client.customer.listCustomers();
await client.project.getProject('token-project');
} catch (error) {
console.log(error);
console.error(error);
throw createError({
statusCode: 401,
message: 'project-token is invalid',
Expand Down
2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function start() {
try {
// eslint-disable-next-line no-console
console.log(`Starting server ${config.publicUrl} ...`);
await server.listen({ port: config.port, host: '0.0.0.0' });
await server.listen({ port: config.port, host: '::' });
} catch (err) {
// eslint-disable-next-line no-console
console.error(err);
Expand Down

0 comments on commit a7ff5a2

Please sign in to comment.