mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 04:06:18 +00:00
Update outbound.js
Fix wrong order params in GrpcStreamSetting
This commit is contained in:
parent
fdf805f264
commit
1ee423e1ef
1 changed files with 5 additions and 5 deletions
|
@ -266,7 +266,7 @@ class GrpcStreamSettings extends CommonClass {
|
|||
}
|
||||
|
||||
static fromJson(json={}) {
|
||||
return new GrpcStreamSettings(json.serviceName, json.multiMode,json.authority);
|
||||
return new GrpcStreamSettings(json.serviceName, json.multiMode, json.authority);
|
||||
}
|
||||
|
||||
toJson() {
|
||||
|
@ -650,7 +650,7 @@ class Outbound extends CommonClass {
|
|||
json.path,
|
||||
json.type ? json.type : 'none');
|
||||
} else if (network === 'grpc') {
|
||||
stream.grpc = new GrpcStreamSettings(json.path, json.authority, json.type == 'multi');
|
||||
stream.grpc = new GrpcStreamSettings(json.path, json.type == 'multi', json.authority);
|
||||
} else if (network === 'httpupgrade') {
|
||||
stream.httpupgrade = new HttpUpgradeStreamSettings(json.path,json.host);
|
||||
}
|
||||
|
@ -696,8 +696,8 @@ class Outbound extends CommonClass {
|
|||
} else if (type === 'grpc') {
|
||||
stream.grpc = new GrpcStreamSettings(
|
||||
url.searchParams.get('serviceName') ?? '',
|
||||
url.searchParams.get('authority') ?? '',
|
||||
url.searchParams.get('mode') == 'multi');
|
||||
url.searchParams.get('mode') == 'multi'),
|
||||
url.searchParams.get('authority') ?? '';
|
||||
} else if (type === 'httpupgrade') {
|
||||
stream.httpupgrade = new HttpUpgradeStreamSettings(path,host);
|
||||
}
|
||||
|
@ -1126,4 +1126,4 @@ Outbound.WireguardSettings.Peer = class extends CommonClass {
|
|||
keepAlive: this.keepAlive?? undefined,
|
||||
};
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue