aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-12-13 02:44:02 +0000
committerNick Mathewson <nickm@torproject.org>2003-12-13 02:44:02 +0000
commitf37f7daa2f0aa3bc981ec3147e171281370f5741 (patch)
tree37f0d10671050b58abfe0d96a937e8a63941083e /src/or/test.c
parentc425f2e0ec86d8bd77a389cb5baf31feca4b784e (diff)
downloadtor-f37f7daa2f0aa3bc981ec3147e171281370f5741.tar
tor-f37f7daa2f0aa3bc981ec3147e171281370f5741.tar.gz
Add port ranges to exit policies
svn:r899
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 1b1ee3727..939783cac 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -560,12 +560,12 @@ test_dir_format()
ex1.string = NULL;
ex1.addr = 0;
ex1.msk = 0;
- ex1.prt = 80;
+ ex1.prt_min = ex1.prt_max = 80;
ex1.next = &ex2;
ex2.policy_type = EXIT_POLICY_REJECT;
ex2.addr = 18 << 24;
ex2.msk = 0xFF000000u;
- ex2.prt = 24;
+ ex2.prt_min = ex1.prt_max = 24;
ex2.next = NULL;
r2.address = "tor.tor.tor";
r2.addr = 0x0a030201u; /* 10.3.2.1 */