Skip to content

Commit

Permalink
chore(server): add port to host if it is 0.0.0.0 (toeverything#5619)
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Jan 18, 2024
1 parent 5b84366 commit d932428
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/backend/server/src/fundamentals/config/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ export const getDefaultAFFiNEConfig: () => AFFiNEConfig = () => {
return this.node.dev
? 'http://localhost:8080'
: `${this.https ? 'https' : 'http'}://${this.host}${
this.host === 'localhost' ? `:${this.port}` : ''
this.host === 'localhost' || this.host === '0.0.0.0'
? `:${this.port}`
: ''
}`;
},
get baseUrl() {
Expand Down

0 comments on commit d932428

Please sign in to comment.