diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-01-04 05:46:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-01-04 05:46:54 +0000 |
commit | 6dd91de3bda3226fc7779c9251ed595ca0225aeb (patch) | |
tree | fc31afc0a58383f3a4dcb8d70d26e5b06246ee1d /src/or/test.c | |
parent | e6c1ab2daf45024ce67132c18be435403b434dd6 (diff) | |
download | tor-6dd91de3bda3226fc7779c9251ed595ca0225aeb.tar.gz tor-6dd91de3bda3226fc7779c9251ed595ca0225aeb.zip |
Nothing actually _uses_ socks_port, so why publish it? For backward compatibility, publish a socks_port of 0, and never read socks_port.
svn:r3279
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/or/test.c b/src/or/test.c index 2260f204b7..01e1cc2dd3 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -1030,7 +1030,6 @@ test_dir_format(void) r1.addr = 0xc0a80001u; /* 192.168.0.1 */ r1.published_on = 0; r1.or_port = 9000; - r1.socks_port = 9002; r1.dir_port = 9003; r1.onion_pkey = pk1; r1.identity_pkey = pk2; @@ -1057,7 +1056,6 @@ test_dir_format(void) r2.platform = tor_strdup(platform); r2.published_on = 5; r2.or_port = 9005; - r2.socks_port = 0; r2.dir_port = 0; r2.onion_pkey = pk2; r2.identity_pkey = pk1; @@ -1109,7 +1107,6 @@ test_dir_format(void) test_assert(rp1); test_streq(rp1->address, r1.address); test_eq(rp1->or_port, r1.or_port); - test_eq(rp1->socks_port, r1.socks_port); test_eq(rp1->dir_port, r1.dir_port); test_eq(rp1->bandwidthrate, r1.bandwidthrate); test_eq(rp1->bandwidthburst, r1.bandwidthburst); @@ -1133,7 +1130,6 @@ test_dir_format(void) test_assert(rp2); test_streq(rp2->address, r2.address); test_eq(rp2->or_port, r2.or_port); - test_eq(rp2->socks_port, r2.socks_port); test_eq(rp2->dir_port, r2.dir_port); test_eq(rp2->bandwidth, r2.bandwidth); test_assert(crypto_pk_cmp_keys(rp2->onion_pkey, pk2) == 0); |