Commit 1d470182 authored by Sigmund Augdal's avatar Sigmund Augdal

Added a few comments where magic numbers are being used

parent a09c552d
......@@ -29,9 +29,9 @@ def reverse_dns6(ipv6_string):
def get_reverse_domain(record):
parts = record.split('.')
if len(parts) == 34:
if len(parts) == 34: # IPv6
parts = parts[17:]
else:
else: # IPv4
parts = parts[1:]
return '.'.join(parts)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment