Skip to content

Commit

Permalink
Revert "do not use twisted.names.client.lookupAddress(), reactor.reso…
Browse files Browse the repository at this point in the history
…lve() is fine"

This reverts commit 61cb303.
For some reason, this breaks on one of my servers...
  • Loading branch information
evgeni committed Jun 1, 2010
1 parent c6c1b42 commit 4afe112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bley.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
# SUCH DAMAGE.

from twisted.internet.protocol import Factory
from twisted.names import client
from twisted.internet import defer
from twisted.internet import reactor

import psycopg2
import datetime
Expand Down Expand Up @@ -253,7 +253,7 @@ def check_dnsl(self, lst, ip):

rip = reverse_ip(ip)
lookup = '%s.%s' % (rip, lst)
d = reactor.resolve(lookup)
d = client.lookupAddress(lookup)
return d

class BleyPolicyFactory(Factory):
Expand Down

0 comments on commit 4afe112

Please sign in to comment.