Convert more redef-able constants to runtime options

This commit is contained in:
Daniel Thayer 2018-08-27 19:38:47 -05:00
parent fd1a23ea66
commit 9bfc01b705
11 changed files with 14 additions and 14 deletions

View file

@ -7,10 +7,10 @@ module ActiveHTTP;
export {
## The default timeout for HTTP requests.
const default_max_time = 1min &redef;
option default_max_time = 1min;
## The default HTTP method/verb to use for requests.
const default_method = "GET" &redef;
option default_method = "GET";
type Response: record {
## Numeric response code from the server.

View file

@ -7,7 +7,7 @@ module Dir;
export {
## The default interval this module checks for files in directories when
## using the :bro:see:`Dir::monitor` function.
const polling_interval = 30sec &redef;
option polling_interval = 30sec;
## Register a directory to monitor with a callback that is called
## every time a previously unseen file is seen. If a file is deleted