[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] prevent picking middleman nodes as the last node in the cir...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] prevent picking middleman nodes as the last node in the cir...
- From: arma@seul.org (Roger Dingledine)
- Date: Tue, 17 Feb 2004 01:39:22 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 17 Feb 2004 01:39:43 -0500
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
router.c routerlist.c
Log Message:
prevent picking middleman nodes as the last node in the circuit
Index: router.c
===================================================================
RCS file: /home/or/cvsroot/src/or/router.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- router.c 10 Jan 2004 23:40:38 -0000 1.7
+++ router.c 17 Feb 2004 06:39:20 -0000 1.8
@@ -455,7 +455,7 @@
return -1;
written += result;
}
- if (tmpe->prt_min == 1 && tmpe->prt_max == 65535) {
+ if (tmpe->prt_min == 0 && tmpe->prt_max == 65535) {
if (written > maxlen-4)
return -1;
strcat(s+written, ":*\n");
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/src/or/routerlist.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- routerlist.c 30 Jan 2004 21:16:51 -0000 1.20
+++ routerlist.c 17 Feb 2004 06:39:20 -0000 1.21
@@ -955,7 +955,7 @@
}
}
if (!port || strcmp(port, "*") == 0) {
- newe->prt_min = 1;
+ newe->prt_min = 0;
newe->prt_max = 65535;
} else {
endptr = NULL;