iwla

iwla Commit Details

Date:2015-01-14 20:19:19 (6 years 6 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:e67723e58ed9f4a3cc478a7218cf29db71df36ad
Parents: 4e8a593699e8d086c28bb194a55d7e2e27bcd9c4
Message:Fix some bugs in track_users

Changes:
Mplugins/display/track_users.py (2 diffs)

File differences

plugins/display/track_users.py
7777
7878
7979
80
80
8181
8282
8383
......
107107
108108
109109
110
111
110
111
112
113
112114
for ip in self.tracked_ip:
if not ip in hits.keys(): continue
if 'dns_name_replaced' in hits[ip].keys():
ip_title = '<b>%s [%s]</b>' % (ip, hits[ip][remote_addr])
ip_title = '<b>%s [%s]</b>' % (hits[ip]['remote_addr'], ip)
else:
ip_title = '<b>%s</b>' % (ip)
table.appendRow([ip_title, ''])
for ip in self.tracked_ip:
if not ip in hits.keys(): continue
if 'dns_name_replaced' in hits[ip].keys():
ip = '%s [%s]' % (ip, hits[ip][remote_addr])
table.appendRow([ip, time.asctime(hits[ip]['last_access'])])
ip_title = '%s [%s]' % (hits[ip]['remote_addr'], ip)
else:
ip_title = ip
table.appendRow([ip_title, time.asctime(hits[ip]['last_access'])])
index.appendBlock(table)

Archive Download the corresponding diff file

Branches

Tags