From c046cb72014114a518f79f4ebf0797defdff91c0 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Fri, 20 Aug 2021 14:55:50 +0700 Subject: [PATCH] Add Hosts --- maker_hosts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maker_hosts.py b/maker_hosts.py index 9f09a97..2598b5f 100644 --- a/maker_hosts.py +++ b/maker_hosts.py @@ -10,7 +10,7 @@ def linecounter(incoming): pass return i + 1 -def hostsbuilding(excluded ,incoming ,output): +def hostsbuilding(excluded ,incoming ,output,Version): ankstanop = linecounter(incoming) with open(excluded ,'r') as f: exclude = f.read().split() @@ -22,6 +22,8 @@ def hostsbuilding(excluded ,incoming ,output): f.write('# Source : Resources/Source.txt\n') f.write('# Rule Counter : ' + str(ankstanop) +' Rules\n') f.write('# Format : Hosts\n') + f.write('# Type : Allowlist\n') + f.write('# Version : ' + str(Version) +'\n') f.write('# Licenses : MIT\n') f.write('# Compiled Date : ' + str(date) +'\n\n') f.write('127.0.0.1 localhost\n')