mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
handle more purposes in new_route_len
svn:r1618
This commit is contained in:
parent
465f0e528a
commit
49f5e5b4ae
@ -171,9 +171,13 @@ static int new_route_len(double cw, uint8_t purpose, smartlist_t *routers) {
|
||||
#else
|
||||
if(purpose == CIRCUIT_PURPOSE_C_GENERAL)
|
||||
routelen = 3;
|
||||
else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND)
|
||||
else if(purpose == CIRCUIT_PURPOSE_C_INTRODUCING)
|
||||
routelen = 4;
|
||||
else if(purpose == CIRCUIT_PURPOSE_C_ESTABLISH_REND)
|
||||
routelen = 3;
|
||||
else if(purpose == CIRCUIT_PURPOSE_S_ESTABLISH_INTRO)
|
||||
routelen = 3;
|
||||
else if(purpose == CIRCUIT_PURPOSE_S_CONNECT_REND)
|
||||
routelen = 4;
|
||||
else {
|
||||
log_fn(LOG_WARN,"Unhandled purpose %d", purpose);
|
||||
|
Loading…
Reference in New Issue
Block a user