Update 'maker_rpz.py'

This commit is contained in:
Kale 2021-08-17 21:57:39 -07:00
parent a696679e93
commit 53607648cb
No known key found for this signature in database
GPG Key ID: F8A6CE83F1274467

View File

@ -23,10 +23,10 @@ def RPZbuilding(excluded,incoming,output):
f.write('; Rule Counter : ' + str(ankstanop) +' Rules\n')
f.write('; Format : RPZ\n')
f.write('; Licenses : MIT\n')
f.write('; Compiled Date : ' + str(date) +'\n\n')
f.write('; Compiled Date : ' + str(date) +'\n;\n')
f.write('$TTL 30\n')
f.write('@ IN SOA localhost. root.localhost. (1 6h 1h 1w 2h)\n')
f.write(' NS localhost.\n\n')
f.write(' NS localhost.\n;\n')
for line in lines:
if line.strip() and not line in exclude and not line.startswith(';'):
f.write('\n'.join([line + ' CNAME .\n']))