- client_connection, (addr, port) = self.accept()
- if addr not in map(socket.gethostbyname, self.allowed):
- print >>sys.stderr, "Rejected connection from", addr
+ client_connection, source_addr = self.accept()
+ if source_addr[0] not in map(socket.gethostbyname, self.allowed):
+ print >>sys.stderr, "Rejected connection from", source_addr