diff options
author | Roger Dingledine <arma@torproject.org> | 2004-04-01 20:33:29 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-04-01 20:33:29 +0000 |
commit | 05b99bcf7dad3be0c205d813269e21080a1d5373 (patch) | |
tree | 537dbb5621169425ada1c89cf09418b5461a5765 /src/or/config.c | |
parent | 103b8ead40102dd3f50db4f6b8b3353c783b6541 (diff) | |
download | tor-05b99bcf7dad3be0c205d813269e21080a1d5373.tar.gz tor-05b99bcf7dad3be0c205d813269e21080a1d5373.zip |
alice chooses her rendezvous node from all running routers
and she can set preferences in her options
svn:r1433
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index eead3a594f..e5e5fc9c8e 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -205,6 +205,8 @@ static int config_assign(or_options_t *options, struct config_line_t *list) { config_compare(list, "RouterFile", CONFIG_TYPE_STRING, &options->RouterFile) || config_compare(list, "RunAsDaemon", CONFIG_TYPE_BOOL, &options->RunAsDaemon) || config_compare(list, "RecommendedVersions",CONFIG_TYPE_STRING, &options->RecommendedVersions) || + config_compare(list, "RendNodes", CONFIG_TYPE_STRING, &options->RendNodes) || + config_compare(list, "RendExcludeNodes",CONFIG_TYPE_STRING, &options->RendExcludeNodes) || config_compare(list, "SocksPort", CONFIG_TYPE_INT, &options->SocksPort) || config_compare(list, "SocksBindAddress",CONFIG_TYPE_STRING,&options->SocksBindAddress) || @@ -419,6 +421,8 @@ static void free_options(or_options_t *options) { tor_free(options->ExitNodes); tor_free(options->EntryNodes); tor_free(options->ExcludeNodes); + tor_free(options->RendNodes); + tor_free(options->RendExcludeNodes); tor_free(options->ExitPolicy); tor_free(options->SocksBindAddress); tor_free(options->ORBindAddress); @@ -436,6 +440,8 @@ static void init_options(or_options_t *options) { options->ExitNodes = tor_strdup(""); options->EntryNodes = tor_strdup(""); options->ExcludeNodes = tor_strdup(""); + options->RendNodes = tor_strdup(""); + options->RendExcludeNodes = tor_strdup(""); options->ExitPolicy = tor_strdup(""); options->SocksBindAddress = tor_strdup("127.0.0.1"); options->ORBindAddress = tor_strdup("0.0.0.0"); |