summaryrefslogtreecommitdiff
path: root/src/or/geoip.c
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2009-05-26 21:41:42 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2009-05-27 19:10:54 +0200
commit5f03d6c547629af73dea2cfdaf888bc3a7caab5d (patch)
tree0558ffe16650e29e671ddff2cf067bea53e73cae /src/or/geoip.c
parent031ce86cd4615c29c42a9c8dc344ab819ac91978 (diff)
downloadtor-5f03d6c547629af73dea2cfdaf888bc3a7caab5d.tar.gz
tor-5f03d6c547629af73dea2cfdaf888bc3a7caab5d.zip
Fix bug 932 even more.
Ignore connections two hours after switching from bridge to relay or back.
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r--src/or/geoip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c
index eb0d7e43f4..e1477d4eab 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -308,6 +308,9 @@ geoip_note_client_seen(geoip_client_action_t action,
if (action == GEOIP_CLIENT_CONNECT) {
if (!(options->BridgeRelay && options->BridgeRecordUsageByCountry))
return;
+ /* Did we recently switch from bridge to relay or back? */
+ if (client_history_starts > now)
+ return;
} else {
#ifndef ENABLE_GEOIP_STATS
return;