|
@@ -2601,9 +2601,14 @@ Inbound.SocksSettings.SocksAccount = class extends XrayCommonClass {
|
|
};
|
|
};
|
|
|
|
|
|
Inbound.HttpSettings = class extends Inbound.Settings {
|
|
Inbound.HttpSettings = class extends Inbound.Settings {
|
|
- constructor(protocol, accounts = [new Inbound.HttpSettings.HttpAccount()]) {
|
|
|
|
|
|
+ constructor(
|
|
|
|
+ protocol,
|
|
|
|
+ accounts = [new Inbound.HttpSettings.HttpAccount()],
|
|
|
|
+ allowTransparent = false,
|
|
|
|
+ ) {
|
|
super(protocol);
|
|
super(protocol);
|
|
this.accounts = accounts;
|
|
this.accounts = accounts;
|
|
|
|
+ this.allowTransparent = allowTransparent;
|
|
}
|
|
}
|
|
|
|
|
|
addAccount(account) {
|
|
addAccount(account) {
|
|
@@ -2618,12 +2623,14 @@ Inbound.HttpSettings = class extends Inbound.Settings {
|
|
return new Inbound.HttpSettings(
|
|
return new Inbound.HttpSettings(
|
|
Protocols.HTTP,
|
|
Protocols.HTTP,
|
|
json.accounts.map(account => Inbound.HttpSettings.HttpAccount.fromJson(account)),
|
|
json.accounts.map(account => Inbound.HttpSettings.HttpAccount.fromJson(account)),
|
|
|
|
+ json.allowTransparent,
|
|
);
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
toJson() {
|
|
toJson() {
|
|
return {
|
|
return {
|
|
accounts: Inbound.HttpSettings.toJsonArray(this.accounts),
|
|
accounts: Inbound.HttpSettings.toJsonArray(this.accounts),
|
|
|
|
+ allowTransparent: this.allowTransparent,
|
|
};
|
|
};
|
|
}
|
|
}
|
|
};
|
|
};
|