diff --git a/hosts/.gitignore b/hosts/.gitignore new file mode 100644 index 0000000..7e699eb --- /dev/null +++ b/hosts/.gitignore @@ -0,0 +1,4 @@ +adsblock.txt +rpz.txt +gravity.list +convert.py \ No newline at end of file diff --git a/hosts/convert.py b/hosts/convert.py index 0bfef90..496d48c 100755 --- a/hosts/convert.py +++ b/hosts/convert.py @@ -1,10 +1,10 @@ import os inputFile = "gravity.list" -outputFile = "rpz.blacklist" +outputFile = "rpz.txt" with open(inputFile, 'r') as f: # load file lines = f.read().splitlines() # read lines -os.remove("rpz.blacklist") +os.remove("rpz.txt") with open(outputFile, 'w') as f: f.write('\n'.join([line + ' CNAME .' for line in lines]))