From ac2297ec31db6815529f62aa10216b15c2c6d943 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Fri, 7 Jun 2024 14:16:55 +0200 Subject: [PATCH] Outbound - Correct parameter order in Grpc #2270 #2348 Co-Authored-By: Amir Hossein Jeddi --- web/assets/js/model/outbound.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index e8f846b4..8d4315d4 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -258,22 +258,22 @@ class QuicStreamSettings extends CommonClass { } class GrpcStreamSettings extends CommonClass { - constructor(serviceName="", multiMode=false, authority="") { + constructor(serviceName="", authority="", multiMode=false) { super(); this.serviceName = serviceName; - this.multiMode = multiMode; this.authority = authority; + this.multiMode = multiMode; } static fromJson(json={}) { - return new GrpcStreamSettings(json.serviceName, json.multiMode,json.authority); + return new GrpcStreamSettings(json.serviceName, json.authority, json.multiMode ); } toJson() { return { serviceName: this.serviceName, - multiMode: this.multiMode, - authority: this.authority + authority: this.authority, + multiMode: this.multiMode } } }