mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 06:35:28 +01:00
r8911@Kushana: nickm | 2006-09-22 12:24:52 -0400
Make exitlist only output each result line once. svn:r8466
This commit is contained in:
parent
4218f09820
commit
da7f9d5a33
3 changed files with 15 additions and 5 deletions
|
@ -32,6 +32,8 @@ Changes in version 0.1.2.2-alpha - 2006-??-??
|
||||||
malloc(0) returns a pointer.
|
malloc(0) returns a pointer.
|
||||||
- Fix a debug log message in eventdns to say "X resolved to Y"
|
- Fix a debug log message in eventdns to say "X resolved to Y"
|
||||||
instead of "X resolved to X".
|
instead of "X resolved to X".
|
||||||
|
- Prevent the 'exitlist' script from printing the same result more
|
||||||
|
than once.
|
||||||
|
|
||||||
o Documentation
|
o Documentation
|
||||||
- Documented (and renamed) ServerDNSSearchDomains and
|
- Documented (and renamed) ServerDNSSearchDomains and
|
||||||
|
|
|
@ -200,6 +200,13 @@ class Server:
|
||||||
self.ip = ip
|
self.ip = ip
|
||||||
self.policy = policy
|
self.policy = policy
|
||||||
|
|
||||||
|
def uniq_sort(lst):
|
||||||
|
d = {}
|
||||||
|
for item in lst: d[item] = 1
|
||||||
|
lst = d.keys()
|
||||||
|
lst.sort()
|
||||||
|
return lst
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
servers = []
|
servers = []
|
||||||
policy = []
|
policy = []
|
||||||
|
@ -237,12 +244,13 @@ def run():
|
||||||
else:
|
else:
|
||||||
printlist = accepters
|
printlist = accepters
|
||||||
|
|
||||||
|
ents = []
|
||||||
if VERBOSE:
|
if VERBOSE:
|
||||||
for s in printlist:
|
ents = uniq_sort([ "%s\t%s"%(s.ip,s.name) for s in printlist ])
|
||||||
print "%s\t%s"%(s.ip,s.name)
|
|
||||||
else:
|
else:
|
||||||
for s in printlist:
|
ents = uniq_sort([ s.ip for s in printlist ])
|
||||||
print s.ip
|
for e in ents:
|
||||||
|
print e
|
||||||
|
|
||||||
def _test():
|
def _test():
|
||||||
import doctest, exitparse
|
import doctest, exitparse
|
||||||
|
|
2
doc/TODO
2
doc/TODO
|
@ -165,7 +165,7 @@ N - provide no-cache no-index headers from the dirport?
|
||||||
M - rewrite how libevent does select() on win32 so it's not so very slow.
|
M - rewrite how libevent does select() on win32 so it's not so very slow.
|
||||||
- Add overlapped IO
|
- Add overlapped IO
|
||||||
|
|
||||||
N - Exitlist should avoid outputting the same IP address twice.
|
o Exitlist should avoid outputting the same IP address twice.
|
||||||
|
|
||||||
Nd- Have a mode that doesn't write to disk much, so we can run Tor on
|
Nd- Have a mode that doesn't write to disk much, so we can run Tor on
|
||||||
flash memory (e.g. Linksys routers or USB keys).
|
flash memory (e.g. Linksys routers or USB keys).
|
||||||
|
|
Loading…
Add table
Reference in a new issue