removed - timeout

This commit is contained in:
mhsanaei
2024-09-24 12:00:37 +02:00
parent e5835c299c
commit 16b4795956
4 changed files with 1 additions and 15 deletions

View File

@@ -851,14 +851,12 @@ Outbound.Settings = class extends CommonClass {
Outbound.FreedomSettings = class extends CommonClass {
constructor(
domainStrategy = '',
timeout = 10,
redirect = '',
fragment = {},
noises = []
) {
super();
this.domainStrategy = domainStrategy;
this.timeout = timeout;
this.redirect = redirect;
this.fragment = fragment;
this.noises = noises;
@@ -875,7 +873,6 @@ Outbound.FreedomSettings = class extends CommonClass {
static fromJson(json = {}) {
return new Outbound.FreedomSettings(
json.domainStrategy,
json.timeout,
json.redirect,
json.fragment ? Outbound.FreedomSettings.Fragment.fromJson(json.fragment) : undefined,
json.noises ? json.noises.map(noise => Outbound.FreedomSettings.Noise.fromJson(noise)) : [new Outbound.FreedomSettings.Noise()],
@@ -885,7 +882,6 @@ Outbound.FreedomSettings = class extends CommonClass {
toJson() {
return {
domainStrategy: ObjectUtil.isEmpty(this.domainStrategy) ? undefined : this.domainStrategy,
timeout: this.timeout,
redirect: this.redirect,
fragment: Object.keys(this.fragment).length === 0 ? undefined : this.fragment,
noises: Outbound.FreedomSettings.Noise.toJsonArray(this.noises),