mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-11-15 07:08:20 +00:00
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:
1 parent
083f79ef39
commit
ce8d3abf7e
2 files changed
+70
-7
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user