mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 22:37:04 +08:00
chore(server): add port to host if it is 0.0.0.0 (#5619)
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user