Skip to content

Commit

Permalink
removed - timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MHSanaei committed Sep 24, 2024
1 parent e5835c2 commit 16b4795
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 15 deletions.
4 changes: 0 additions & 4 deletions web/assets/js/model/outbound.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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()],
Expand All @@ -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),
Expand Down
6 changes: 1 addition & 5 deletions web/assets/js/model/xray.js
Original file line number Diff line number Diff line change
Expand Up @@ -2513,15 +2513,13 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
address,
port,
network = 'tcp,udp',
followRedirect = false,
timeout = 30
followRedirect = false
) {
super(protocol);
this.address = address;
this.port = port;
this.network = network;
this.followRedirect = followRedirect;
this.timeout = timeout;
}

static fromJson(json = {}) {
Expand All @@ -2531,7 +2529,6 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
json.port,
json.network,
json.followRedirect,
json.timeout,
);
}

Expand All @@ -2541,7 +2538,6 @@ Inbound.DokodemoSettings = class extends Inbound.Settings {
port: this.port,
network: this.network,
followRedirect: this.followRedirect,
timeout: this.timeout,
};
}
};
Expand Down
3 changes: 0 additions & 3 deletions web/html/xui/form/outbound.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
<a-select-option v-for="s in OutboundDomainStrategies" :value="s">[[ s ]]</a-select-option>
</a-select>
</a-form-item>
<a-form-item label='Timeout'>
<a-input-number v-model.number="outbound.settings.timeout" min="0" ></a-input-number>
</a-form-item>
<a-form-item label='Redirect'>
<a-input v-model="outbound.settings.redirect"></a-input>
</a-form-item>
Expand Down
3 changes: 0 additions & 3 deletions web/html/xui/form/protocol/dokodemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@
<a-form-item label='Follow Redirect'>
<a-switch v-model="inbound.settings.followRedirect"></a-switch>
</a-form-item>
<a-form-item label='Timeout'>
<a-input-number v-model.number="inbound.settings.timeout" :min="0"></a-input-number>
</a-form-item>
</a-form>
{{end}}

0 comments on commit 16b4795

Please sign in to comment.