Added an option to compress the created host file.

In particular, the compression option removes non-necessary lines (empty lines and comments) and puts multiple domains in each line.
This option should solve the issue #411 regarding the DNS client service of Windows.
This commit is contained in:
Stefano
2017-12-30 17:12:04 +01:00
parent 083f79ef39
commit ce8d3abf7e
2 changed files with 70 additions and 7 deletions
+2 -1
View File
@@ -100,6 +100,7 @@ class TestGetDefaults(Base):
"keepdomaincomments": False,
"extensionspath": "foo" + self.sep + "extensions",
"extensions": [],
"compress": False,
"outputsubfolder": "",
"hostfilename": "hosts",
"targetip": "0.0.0.0",
@@ -249,7 +250,7 @@ class TestPromptForUpdate(BaseStdout, BaseMockDir):
def tearDown(self):
BaseStdout.tearDown(self)
BaseStdout.tearDown(self)
# BaseStdout.tearDown(self)
class TestPromptForExclusions(BaseStdout):