mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-05-03 05:38:49 +00:00
Co-Authored-By: Amir Hossein Jeddi <seriousmvs@gmail.com>
This commit is contained in:
parent
fc714962ad
commit
e1ef746cab
1 changed files with 5 additions and 5 deletions
|
@ -258,22 +258,22 @@ class QuicStreamSettings extends CommonClass {
|
||||||
}
|
}
|
||||||
|
|
||||||
class GrpcStreamSettings extends CommonClass {
|
class GrpcStreamSettings extends CommonClass {
|
||||||
constructor(serviceName="", multiMode=false, authority="") {
|
constructor(serviceName="", authority="", multiMode=false) {
|
||||||
super();
|
super();
|
||||||
this.serviceName = serviceName;
|
this.serviceName = serviceName;
|
||||||
this.multiMode = multiMode;
|
|
||||||
this.authority = authority;
|
this.authority = authority;
|
||||||
|
this.multiMode = multiMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
static fromJson(json={}) {
|
static fromJson(json={}) {
|
||||||
return new GrpcStreamSettings(json.serviceName, json.multiMode,json.authority);
|
return new GrpcStreamSettings(json.serviceName, json.authority, json.multiMode );
|
||||||
}
|
}
|
||||||
|
|
||||||
toJson() {
|
toJson() {
|
||||||
return {
|
return {
|
||||||
serviceName: this.serviceName,
|
serviceName: this.serviceName,
|
||||||
multiMode: this.multiMode,
|
authority: this.authority,
|
||||||
authority: this.authority
|
multiMode: this.multiMode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue