diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-02-01 04:34:23 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-02-01 04:36:57 +0300 |
| commit | 3af6497577b7da4149a6432ea83ae4f229da6e45 (patch) | |
| tree | 172c642eaf9721748beb2b4bf6e90d02096c665a /web/assets/js/model/outbound.js | |
| parent | c59f54bb0ef9ef06ade11aa75fba61224830be7e (diff) | |
inbound : finalmask
Diffstat (limited to 'web/assets/js/model/outbound.js')
| -rw-r--r-- | web/assets/js/model/outbound.js | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 3e5374e3..bac886d3 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -166,14 +166,12 @@ class TcpStreamSettings extends CommonClass { class KcpStreamSettings extends CommonClass { constructor( mtu = 1350, - tti = 50, + tti = 20, uplinkCapacity = 5, downlinkCapacity = 20, congestion = false, - readBufferSize = 2, - writeBufferSize = 2, - type = 'none', - seed = '', + readBufferSize = 1, + writeBufferSize = 1, ) { super(); this.mtu = mtu; @@ -183,8 +181,6 @@ class KcpStreamSettings extends CommonClass { this.congestion = congestion; this.readBuffer = readBufferSize; this.writeBuffer = writeBufferSize; - this.type = type; - this.seed = seed; } static fromJson(json = {}) { @@ -196,8 +192,6 @@ class KcpStreamSettings extends CommonClass { json.congestion, json.readBufferSize, json.writeBufferSize, - ObjectUtil.isEmpty(json.header) ? 'none' : json.header.type, - json.seed, ); } @@ -210,10 +204,6 @@ class KcpStreamSettings extends CommonClass { congestion: this.congestion, readBufferSize: this.readBuffer, writeBufferSize: this.writeBuffer, - header: { - type: this.type, - }, - seed: this.seed, }; } } |
