Commit 705b04c5 by Bach Dániel

firewall: simplify method

parent a14abcd3
......@@ -142,7 +142,7 @@ def ipv6_to_octal(ipv6):
part = '%04x' % part
octets.append(int(part[:2], 16))
octets.append(int(part[2:], 16))
return '\\' + '\\'.join(['%03o' % x for x in octets])
return ''.join(['\\%03o' % x for x in octets])
# =fqdn:ip:ttl A, PTR
......
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 sign in to comment