mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix url generate in ws conn
This commit is contained in:
1 parent
425982a162
commit
15d7edcab9
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.20.20",
|
"version": "2.20.21",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ export class HandlerCommon {
|
|||||||
try {
|
try {
|
||||||
const { anchor } = args;
|
const { anchor } = args;
|
||||||
if (args.domainId) name += '_with_domainId';
|
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';
|
name += '_with_domainId';
|
||||||
args.domainId = this.domainId;
|
args.domainId = this.domainId;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user