Configurable ReplayWindow size, zero disables
This commit is contained in:
parent
8dfe1b374e
commit
23acc19bc0
7 changed files with 43 additions and 18 deletions
|
|
@ -276,6 +276,7 @@ bool setup_myself(void) {
|
|||
struct addrinfo *ai, *aip, hint = {0};
|
||||
bool choice;
|
||||
int i, err;
|
||||
int replaywin_int;
|
||||
|
||||
myself = new_node();
|
||||
myself->connection = new_connection();
|
||||
|
|
@ -419,6 +420,14 @@ bool setup_myself(void) {
|
|||
}
|
||||
}
|
||||
|
||||
if(get_config_int(lookup_config(config_tree, "ReplayWindow"), &replaywin_int)) {
|
||||
if(replaywin_int < 0) {
|
||||
logger(LOG_ERR, "ReplayWindow cannot be negative!");
|
||||
return false;
|
||||
}
|
||||
replaywin = (unsigned)replaywin_int;
|
||||
}
|
||||
|
||||
if(get_config_string(lookup_config(config_tree, "AddressFamily"), &afname)) {
|
||||
if(!strcasecmp(afname, "IPv4"))
|
||||
addressfamily = AF_INET;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue