mirror of
https://github.com/remittor/zapret-openwrt.git
synced 2026-01-27 04:40:34 +03:00
config: Add new option AUTOHOSTLIST_RETRANS_RESET
This commit is contained in:
@@ -279,6 +279,10 @@ return view.extend({
|
|||||||
o = s.taboption(tabname, form.Value, 'AUTOHOSTLIST_RETRANS_MAXSEQ', _('RETRANS_MAXSEQ'));
|
o = s.taboption(tabname, form.Value, 'AUTOHOSTLIST_RETRANS_MAXSEQ', _('RETRANS_MAXSEQ'));
|
||||||
o.rmempty = false;
|
o.rmempty = false;
|
||||||
o.datatype = 'uinteger';
|
o.datatype = 'uinteger';
|
||||||
|
|
||||||
|
o = s.taboption(tabname, form.Value, 'AUTOHOSTLIST_RETRANS_RESET', _('RETRANS_RESET'));
|
||||||
|
o.rmempty = false;
|
||||||
|
o.datatype = 'uinteger';
|
||||||
}
|
}
|
||||||
|
|
||||||
o = s.taboption(tabname, form.Value, 'AUTOHOSTLIST_RETRANS_THRESHOLD', _('RETRANS_THRESHOLD'));
|
o = s.taboption(tabname, form.Value, 'AUTOHOSTLIST_RETRANS_THRESHOLD', _('RETRANS_THRESHOLD'));
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ IP2NET_OPT6="--prefix-length=56-64 --v6-threshold=5"
|
|||||||
# NOTE : set PKT_IN, PKT_OUT variables appropriately
|
# NOTE : set PKT_IN, PKT_OUT variables appropriately
|
||||||
AUTOHOSTLIST_INCOMING_MAXSEQ=4096
|
AUTOHOSTLIST_INCOMING_MAXSEQ=4096
|
||||||
AUTOHOSTLIST_RETRANS_MAXSEQ=32768
|
AUTOHOSTLIST_RETRANS_MAXSEQ=32768
|
||||||
|
AUTOHOSTLIST_RETRANS_RESET=1
|
||||||
AUTOHOSTLIST_RETRANS_THRESHOLD=3
|
AUTOHOSTLIST_RETRANS_THRESHOLD=3
|
||||||
AUTOHOSTLIST_FAIL_THRESHOLD=3
|
AUTOHOSTLIST_FAIL_THRESHOLD=3
|
||||||
AUTOHOSTLIST_FAIL_TIME=60
|
AUTOHOSTLIST_FAIL_TIME=60
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ function set_cfg_reset_values
|
|||||||
# autohostlist options
|
# autohostlist options
|
||||||
set $cfgname.config.AUTOHOSTLIST_INCOMING_MAXSEQ='4096'
|
set $cfgname.config.AUTOHOSTLIST_INCOMING_MAXSEQ='4096'
|
||||||
set $cfgname.config.AUTOHOSTLIST_RETRANS_MAXSEQ='32768'
|
set $cfgname.config.AUTOHOSTLIST_RETRANS_MAXSEQ='32768'
|
||||||
|
set $cfgname.config.AUTOHOSTLIST_RETRANS_RESET='1'
|
||||||
set $cfgname.config.AUTOHOSTLIST_RETRANS_THRESHOLD='3'
|
set $cfgname.config.AUTOHOSTLIST_RETRANS_THRESHOLD='3'
|
||||||
set $cfgname.config.AUTOHOSTLIST_FAIL_THRESHOLD='3'
|
set $cfgname.config.AUTOHOSTLIST_FAIL_THRESHOLD='3'
|
||||||
set $cfgname.config.AUTOHOSTLIST_FAIL_TIME='60'
|
set $cfgname.config.AUTOHOSTLIST_FAIL_TIME='60'
|
||||||
|
|||||||
Reference in New Issue
Block a user