- Timestamp:
- May 3, 2012, 5:52:28 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r10659 r10660 1092 1092 1093 1093 for line in dns_list: 1094 reverse = False 1094 1095 k, items = line.items()[0] 1095 items = [items] if type(items) == str else items 1096 if type(items) == dict: 1097 if items.has_key('reverse'): 1098 reverse = items['reverse'] 1099 items = items['a'] 1100 else: 1101 items = items['cname'] 1102 items = [items] if type(items) != list else items 1096 1103 for item in items: 1097 1104 if item.startswith('IN '): 1098 1105 wleiden_raw[k] = item 1099 1106 elif valid_addr(item): 1100 wleiden_zone[k].append((item, False))1107 wleiden_zone[k].append((item, reverse)) 1101 1108 else: 1102 1109 wleiden_cname[k] = item
Note:
See TracChangeset
for help on using the changeset viewer.