aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 688335ab1..9f2c97edc 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -558,12 +558,14 @@ test_dir_format()
ex1.policy_type = EXIT_POLICY_ACCEPT;
ex1.string = NULL;
- ex1.address = "*";
- ex1.port = "80";
+ ex1.addr = 0;
+ ex1.msk = 0;
+ ex1.prt = 80;
ex1.next = &ex2;
ex2.policy_type = EXIT_POLICY_REJECT;
- ex2.address = "18.*";
- ex2.port = "24";
+ ex2.addr = 18 << 24;
+ ex2.msk = 0xFF000000u;
+ ex2.prt = 24;
ex2.next = NULL;
r2.address = "tor.tor.tor";
r2.addr = 0x0a030201u; /* 10.3.2.1 */