mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 12:16: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
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue