diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-09 07:28:12 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-09 07:28:12 +0300 |
| commit | c49ec9a74cf1c407cbe872355f1e2ac03a8e3080 (patch) | |
| tree | d1945e4821b7682a2fd171b5fadf106d2f920f9e /web/assets/js | |
| parent | a0dd101d9778f11dfe4866e7bc71c5119bcbf6fa (diff) | |
chore: add new grpc params for outbound (#2744)
Diffstat (limited to 'web/assets/js')
| -rw-r--r-- | web/assets/js/model/inbound.js | 6 | ||||
| -rw-r--r-- | web/assets/js/model/outbound.js | 30 |
2 files changed, 28 insertions, 8 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index 5c3235e1..d08553d9 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -420,20 +420,17 @@ class WsStreamSettings extends XrayCommonClass { class GrpcStreamSettings extends XrayCommonClass { constructor( serviceName = "", - authority = "", - multiMode = false, + authority = "" ) { super(); this.serviceName = serviceName; this.authority = authority; - this.multiMode = multiMode; } static fromJson(json = {}) { return new GrpcStreamSettings( json.serviceName, json.authority, - json.multiMode ); } @@ -441,7 +438,6 @@ class GrpcStreamSettings extends XrayCommonClass { return { serviceName: this.serviceName, authority: this.authority, - multiMode: this.multiMode, } } } diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 0103b1e8..38c7ce73 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -251,23 +251,47 @@ class GrpcStreamSettings extends CommonClass { constructor( serviceName = "", authority = "", - multiMode = false + multiMode = false, + userAgent = "", + idleTimeout = 60, + healthCheckTimeout = 20, + permitWithoutStream = false, + initialWindowsSize = 0 ) { super(); this.serviceName = serviceName; this.authority = authority; this.multiMode = multiMode; + this.user_agent = userAgent; + this.idle_timeout = idleTimeout; + this.health_check_timeout = healthCheckTimeout; + this.permit_without_stream = permitWithoutStream; + this.initial_windows_size = initialWindowsSize; } static fromJson(json = {}) { - return new GrpcStreamSettings(json.serviceName, json.authority, json.multiMode); + return new GrpcStreamSettings( + json.serviceName, + json.authority, + json.multiMode, + json.user_agent, + json.idle_timeout, + json.health_check_timeout, + json.permit_without_stream, + json.initial_windows_size + ); } toJson() { return { serviceName: this.serviceName, authority: this.authority, - multiMode: this.multiMode + multiMode: this.multiMode, + user_agent: this.user_agent, + idle_timeout: this.idle_timeout, + health_check_timeout: this.health_check_timeout, + permit_without_stream: this.permit_without_stream, + initial_windows_size: this.initial_windows_size } } } |
