diff options
Diffstat (limited to 'web')
| -rw-r--r-- | web/assets/js/model/outbound.js | 6 | ||||
| -rw-r--r-- | web/html/xui/form/outbound.html | 4 | ||||
| -rw-r--r-- | web/html/xui/settings.html | 14 |
3 files changed, 12 insertions, 12 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 59da542a..5c019a3c 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -909,15 +909,15 @@ Outbound.FreedomSettings.Fragment = class extends CommonClass { } }; Outbound.FreedomSettings.Noise = class extends CommonClass { - constructor(packets = '', delay = '') { + constructor(packet = '', delay = '') { super(); - this.packets = packets; + this.packet = packet; this.delay = delay; } static fromJson(json = {}) { return new Outbound.FreedomSettings.Noise( - json.packets, + json.packet, json.delay, ); } diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index a579b7a6..1f79671f 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -45,8 +45,8 @@ <a-switch :checked="Object.keys(outbound.settings.noise).length >0" @change="checked => outbound.settings.noise = checked ? new Outbound.FreedomSettings.Noise() : {}"></a-switch> </a-form-item> <template v-if="Object.keys(outbound.settings.noise).length >0"> - <a-form-item label='Packets'> - <a-input v-model.trim="outbound.settings.noise.packets"></a-input> + <a-form-item label='Packet'> + <a-input v-model.trim="outbound.settings.noise.packet"></a-input> </a-form-item> <a-form-item label='Delay'> <a-input v-model.trim="outbound.settings.noise.delay"></a-input> diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index beab4df1..a12dfab9 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -326,8 +326,8 @@ </a-row> <a-collapse v-if="noise" style="margin-top: 14px;"> <a-collapse-panel header='{{ i18n "pages.settings.noiseSett"}}' v-if="noise"> - <setting-list-item style="padding: 10px 20px" type="text" title='Packets' v-model="noisePackets" placeholder="rand:5-10"></setting-list-item> - <setting-list-item style="padding: 10px 20px" type="text" title='Delay' v-model="noiseDelay" placeholder="5-10"></setting-list-item> + <setting-list-item style="padding: 10px 20px" type="text" title='Packet (ms)' v-model="noisePacket" placeholder="rand:5-10"></setting-list-item> + <setting-list-item style="padding: 10px 20px" type="text" title='Delay (ms)' v-model="noiseDelay" placeholder="10-20"></setting-list-item> </a-collapse-panel> </a-collapse> </a-list-item> @@ -436,8 +436,8 @@ settings: { domainStrategy: "AsIs", noise: { - packets: "rand:5-10", - delay: "5-10", + packet: "rand:5-10", + delay: "10-20", } }, }, @@ -646,12 +646,12 @@ this.allSetting.subJsonNoise = v ? JSON.stringify(this.defaultNoise) : ""; } }, - noisePackets: { - get: function () { return this.noise ? JSON.parse(this.allSetting.subJsonNoise).settings.noise.packets : ""; }, + noisePacket: { + get: function () { return this.noise ? JSON.parse(this.allSetting.subJsonNoise).settings.noise.packet : ""; }, set: function (v) { if (v != "") { newNoise = JSON.parse(this.allSetting.subJsonNoise); - newNoise.settings.noise.packets = v; + newNoise.settings.noise.packet = v; this.allSetting.subJsonNoise = JSON.stringify(newNoise); } } |
