Detektion von Tor-Exit-Nodes repariert
Change-Id: I679490278778a66a73520773865ff1f3489ad864
diff --git a/p/daemon/dnslookup.c b/p/daemon/dnslookup.c
index 1808f97..e4fe758 100644
--- a/p/daemon/dnslookup.c
+++ b/p/daemon/dnslookup.c
@@ -66,8 +66,8 @@
if (sizeof(arr)!=4)
return 0;
string req =
- sprintf("%s.%s.%s.%s.%d.60.24.79.87.ip-port.exitlist.torproject.org",
- arr[3],arr[2],arr[1],arr[0],localport);
+ sprintf("%s.%s.%s.%s.dnsel.torproject.org",
+ arr[3],arr[2],arr[1],arr[0]);
return resolve(req) == "127.0.0.2";
}
@@ -81,7 +81,7 @@
string req =
sprintf("%s.%s.%s.%s.dnsbl.dronebl.org",
arr[3],arr[2],arr[1],arr[0]);
-
+
return resolve(req) != 0;
}
@@ -91,6 +91,7 @@
public void update( string udp_reply )
{
if( previous_object()!=master() ) return;
+
string *reply = explode(udp_reply,"\n");
if( sizeof(reply)<3 ) return;