mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-09-11 19:47:35 +03:00
chore(server): add port to host if it is 0.0.0.0 (#5619)
This commit is contained in:
parent
5b84366de3
commit
d9324286d4
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user