chore(server): add port to host if it is 0.0.0.0 (#5619)

This commit is contained in:
liuyi 2024-01-18 03:04:36 +00:00
parent 5b84366de3
commit d9324286d4
No known key found for this signature in database
GPG Key ID: 56709255DC7EC728

View File

@ -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() {