mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 20:26:19 +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.path,
|
||||||
json.type ? json.type : 'none');
|
json.type ? json.type : 'none');
|
||||||
} else if (network === 'grpc') {
|
} 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') {
|
} else if (network === 'httpupgrade') {
|
||||||
stream.httpupgrade = new HttpUpgradeStreamSettings(json.path,json.host);
|
stream.httpupgrade = new HttpUpgradeStreamSettings(json.path,json.host);
|
||||||
}
|
}
|
||||||
|
@ -696,8 +696,8 @@ class Outbound extends CommonClass {
|
||||||
} else if (type === 'grpc') {
|
} else if (type === 'grpc') {
|
||||||
stream.grpc = new GrpcStreamSettings(
|
stream.grpc = new GrpcStreamSettings(
|
||||||
url.searchParams.get('serviceName') ?? '',
|
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') {
|
} else if (type === 'httpupgrade') {
|
||||||
stream.httpupgrade = new HttpUpgradeStreamSettings(path,host);
|
stream.httpupgrade = new HttpUpgradeStreamSettings(path,host);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue