diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-07 22:04:17 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-07 22:04:17 +0000 |
commit | e6847c44204876cf5cf2b2116af920bbd165b0f1 (patch) | |
tree | 10d50110baee83d8c74b32a1edf8a714da5c56b7 /src | |
parent | 16778795f334e236e59b6b52e5313b94c817d284 (diff) | |
download | tor-e6847c44204876cf5cf2b2116af920bbd165b0f1.tar tor-e6847c44204876cf5cf2b2116af920bbd165b0f1.tar.gz |
add ExitPolicy line to config file
svn:r552
Diffstat (limited to 'src')
-rw-r--r-- | src/or/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c index 6c57a39fe..496c575f3 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -12,7 +12,7 @@ #define CONFIG_TYPE_DOUBLE 4 #define CONFIG_TYPE_BOOL 5 -#define CONFIG_LINE_MAXLEN 1024 +#define CONFIG_LINE_MAXLEN 4096 struct config_line { char *key; @@ -155,6 +155,7 @@ static void config_assign(or_options_t *options, struct config_line *list) { config_compare(list, "RouterFile", CONFIG_TYPE_STRING, &options->RouterFile) || config_compare(list, "Nickname", CONFIG_TYPE_STRING, &options->Nickname) || config_compare(list, "Address", CONFIG_TYPE_STRING, &options->Address) || + config_compare(list, "ExitPolicy", CONFIG_TYPE_STRING, &options->ExitPolicy) || /* int options */ config_compare(list, "MaxConn", CONFIG_TYPE_INT, &options->MaxConn) || |