core: fix url generate in ws conn

This commit is contained in:
undefined committed 2021-03-15 21:46:48 +08:00
1 parent 425982a162
commit 15d7edcab9
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -310,7 +310,7 @@ export class HandlerCommon {
try {
const { anchor } = args;
if (args.domainId) name += '_with_domainId';
else if (this.domain?.host !== this.request.host && this.domainId !== 'system') {
else if ((!this.request.host || this.domain?.host !== this.request.host) && this.domainId !== 'system') {
name += '_with_domainId';
args.domainId = this.domainId;
}