aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-29 08:57:19 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-29 08:57:19 -0400
commitdc019b06548e49ce4ea2a1501715985b648f2606 (patch)
tree9e555f718343768ffcf1e9b08853cb071cd85c60 /src/or/config.c
parent56f92ca02d2fb972bc476f235a545b3dc764f58d (diff)
parentfa60a64088ace76aa2a3c1a8347ee32d4bd3ee21 (diff)
downloadtor-dc019b06548e49ce4ea2a1501715985b648f2606.tar.gz
tor-dc019b06548e49ce4ea2a1501715985b648f2606.zip
Merge remote-tracking branch 'yawning/bug13213'
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 3d9e1d2d4d..b68990ca68 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1399,24 +1399,26 @@ options_act(const or_options_t *old_options)
mark_transport_list();
pt_prepare_proxy_list_for_config_read();
- if (options->ClientTransportPlugin) {
- for (cl = options->ClientTransportPlugin; cl; cl = cl->next) {
- if (parse_client_transport_line(options, cl->value, 0)<0) {
- log_warn(LD_BUG,
- "Previously validated ClientTransportPlugin line "
- "could not be added!");
- return -1;
+ if (!options->DisableNetwork) {
+ if (options->ClientTransportPlugin) {
+ for (cl = options->ClientTransportPlugin; cl; cl = cl->next) {
+ if (parse_client_transport_line(options, cl->value, 0)<0) {
+ log_warn(LD_BUG,
+ "Previously validated ClientTransportPlugin line "
+ "could not be added!");
+ return -1;
+ }
}
}
- }
- if (options->ServerTransportPlugin && server_mode(options)) {
- for (cl = options->ServerTransportPlugin; cl; cl = cl->next) {
- if (parse_server_transport_line(options, cl->value, 0)<0) {
- log_warn(LD_BUG,
- "Previously validated ServerTransportPlugin line "
- "could not be added!");
- return -1;
+ if (options->ServerTransportPlugin && server_mode(options)) {
+ for (cl = options->ServerTransportPlugin; cl; cl = cl->next) {
+ if (parse_server_transport_line(options, cl->value, 0)<0) {
+ log_warn(LD_BUG,
+ "Previously validated ServerTransportPlugin line "
+ "could not be added!");
+ return -1;
+ }
}
}
}