[or-cvs] make it so there is one place to edit for new dirservers, n...

arma at seul.org arma at seul.org
Sat Mar 18 22:37:37 UTC 2006


Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	config.c 
Log Message:
make it so there is one place to edit for new dirservers, not two.


Index: config.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.534
retrieving revision 1.535
diff -u -p -d -r1.534 -r1.535
--- config.c	17 Mar 2006 23:25:40 -0000	1.534
+++ config.c	18 Mar 2006 22:37:27 -0000	1.535
@@ -536,15 +536,18 @@ escaped_safe_str(const char *address)
 static void
 add_default_trusted_dirservers(void)
 {
+  int i;
   const char *dirservers[] = {
-"moria1 v1 18.244.0.188:9031 "
-                           "FFCB 46DB 1339 DA84 674C 70D7 CB58 6434 C437 0441",
-"moria2 v1 18.244.0.114:80  719B E45D E224 B607 C537 07D0 E214 3E2D 423E 74CF",
-"tor26 v1 86.59.21.38:80    847B 1F85 0344 D787 6491 A548 92F9 0493 4E4E B85D"
+    "moria1 v1 18.244.0.188:9031 "
+      "FFCB 46DB 1339 DA84 674C 70D7 CB58 6434 C437 0441",
+    "moria2 v1 18.244.0.114:80 "
+      "719B E45D E224 B607 C537 07D0 E214 3E2D 423E 74CF",
+    "tor26 v1 86.59.21.38:80 "
+      "847B 1F85 0344 D787 6491 A548 92F9 0493 4E4E B85D",
+    NULL
   };
-  parse_dir_server_line(dirservers[0], 0);
-  parse_dir_server_line(dirservers[1], 0);
-  parse_dir_server_line(dirservers[2], 0);
+  for (i=0; dirservers[i]; i++)
+    parse_dir_server_line(dirservers[i], 0);
 }
 
 /** Fetch the active option list, and take actions based on it. All of the



More information about the tor-commits mailing list