gfyoung
eb2401866f
Patch all style errors in updateHostsFile.py
2017-05-15 15:00:16 -04:00
gfyoung
ac44b8e360
Standardize underscore names in updateHostsFile.py
2017-05-15 13:32:39 -04:00
gfyoung
19c6e1c685
Condense Python 2-3 compatibility code
2017-05-14 22:30:36 -04:00
gfyoung
84b1def51f
Condense exclusion customization logic
2017-05-14 22:10:19 -04:00
gfyoung
31b1779d2c
Flush DNS cache on Windows
2017-05-14 22:07:43 -04:00
gfyoung
62d60fb847
Remove unnecessary space between print and parenthesis
2017-05-14 14:54:24 -04:00
Steven Black
59bd0897ab
Merge pull request #292 from gfyoung/remove-unused-imports
...
Remove unnecessary imports in updateHostsFile.py
2017-05-14 11:03:22 -04:00
gfyoung
70b8b6a18b
Have query_yes_no return boolean
...
Bugs have been found where we assumed
that query_yes_no returned True/False.
Not only is it easier to check booleans
instead of strings, but it also looks
a lot cleaner in the code.
2017-05-14 00:15:58 -04:00
gfyoung
00f62e01b7
Remove unnecessary imports in updateHostsFile.py
2017-05-13 23:43:00 -04:00
gfyoung
00605d3e23
Patch response checking in promptForFlushDnsCache
...
Previously, it was checking if query_yes_no returned
False, which does not happen, as the function only
returns "yes" or "no". As a result, the check was
always returning True, even when the user did not
want to flush the DNS cache.
2017-05-08 01:10:40 -04:00
DPTJKKVH
b93c304316
Include 127.0.0.53 <hostname> to fix DNS issues from Ubuntu 17.04 onwards
...
Ubuntu 17.04 replaces dnsmasq with systemd-resolve which uses a different local IP address for domain name resolution.
By including this simple line of code we basically do the same what Issue #110 requested to fix Issue #109 but this time for systemd-resolve.
2017-04-23 11:20:29 +02:00
Tomasz Przybył
05a631e551
[FIX] traceroute and netstat display anomaly
...
Based on hosts file generated by Uncheky app
@StevenBlack
2017-04-13 19:21:10 +02:00
Steven Black
b5fa88d181
Trim periods in addition to whitespace. Closes #271 .
2017-03-30 12:08:50 -04:00
Steven Black
4af23a597e
Issue #243 : fix - don’t include domain comments, by default.
2017-02-17 22:29:58 -05:00
Steven Black
43c8ced8dc
Recursively collect files in subfolvers in Python versions below 3.5. This closes Issue #218 .
2016-12-18 23:17:01 -05:00
Steven Black
80f31a6612
Allow nesting of base hosts data, and within extension folders.
2016-12-18 19:57:55 -05:00
Steven Black
df11ae41f3
‘hostsFile’ is a better variable name here than ‘dataFile’.
2016-12-18 18:34:41 -05:00
Steven Black
a60ac74264
‘hostsfilename’ is a better variable name than ‘datafilenames’.
2016-12-18 18:32:44 -05:00
Steven Black
84ca84f9ef
Updating all sources: add recursive=True to the call to glob()
2016-12-18 17:55:55 -05:00
Steven Black
0e81939fc5
Update data regardless fo folder depth using glob.glob().
2016-12-18 11:02:21 -05:00
Steven Black
295c0b6905
Restore updateHostsFile.py to 09e983ffc2 because the prior commit’s diff is cluded by space/tab changes.
2016-12-18 10:55:35 -05:00
Steven Black
3739c6292b
Refactoring in updateHostsFile.py
2016-12-18 00:34:12 -05:00
Steven Black
09e983ffc2
Added metadata to Sinfonietta’s hosts source files.
2016-12-11 13:44:51 -05:00
Steven Black
f6e1c19b18
Create a sourcesdata hash for each flavor of hosts file generated.
2016-12-11 12:22:51 -05:00
Steven Black
b2f8eb9267
Code commenting.
2016-12-11 12:22:02 -05:00
Steven Black
494873fece
This code is never called.
2016-12-11 12:21:38 -05:00
Steven Black
71a800b1db
Issue #208 : fix - save the source data to populate the reame files.
2016-12-10 23:52:42 -05:00
Tom Hoover
19a23e85ab
add an optional blacklist file
...
The contents of this file (containing a listing of additional
domains in 'hosts' file format) are appended to the unified hosts
file during the update process.
2016-12-10 14:17:56 -06:00
Steven Black
ea4099af6d
Change update.info files to update.json, update the python generators, and docs.
2016-12-09 20:59:43 -05:00
Steven Black
f2f6a18440
Issue #188 : Optionally create a hosts.zip file in addition to the hosts file.
2016-10-16 23:07:06 -04:00
cryzed
85ada890ba
Handle the auto flag in promptForFlushDnsCache
2016-06-13 02:13:36 +02:00
cryzed
fd6769005e
Implement feature proposed in #138
2016-06-12 14:04:38 +02:00
cclauss
b20fa35eba
Update updateHostsFile.py
2016-05-02 10:59:54 +02:00
cclauss
854f2410a1
Update updateHostsFile.py
2016-04-26 17:52:00 +02:00
cclauss
1b46ffd85b
Update updateHostsFile.py
2016-04-26 16:11:51 +02:00
cclauss
9ec9f22dda
Update updateHostsFile.py
2016-04-26 16:03:36 +02:00
cclauss
46877f22c4
Update updateHostsFile.py
2016-04-26 15:49:31 +02:00
cclauss
5e08804cec
Use 'with open() as' to automaticly close() files
2016-04-26 15:46:14 +02:00
Indrajit Raychaudhuri
8c089ff0ef
Add option to skip static localhost entries in the final hosts file.
...
This is particularly handy when you want to add the generated hosts file
as additional static 'hosts' file in DNS servers without affecting the default
`/etc/hosts`.
For example, `--addn-hosts=<file>` in dnsmasq [1] can be used exactly for this
purpose.
[1] http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
2016-04-19 14:44:39 -05:00
Steven Black
3b30ff8000
Sort the display of --help options.
2016-04-03 21:30:46 -04:00
Steven Black
b194e25020
Now the backup feature is optional, default is no backup.
2016-04-03 21:29:47 -04:00
Steven Black
6f60a86fad
Typo in settings key. Fixes #126 .
2016-04-03 21:19:41 -04:00
Steven Black
60c43d299b
Issue #118 : fix – resolve problems with whitelisting domains.
2016-04-01 23:49:22 -04:00
itachi46
6f1484a01c
Fixed file not found error due to relative path
...
When updateHostFile.py is not run from the project directory we get a file not found error trying to find readmeData.json
2016-03-31 23:35:42 +11:00
Steven Black
6dc8c77b64
Tweak for updatehostsfile.py which wasn't updating extension sources.
2016-03-28 23:04:34 -04:00
Steven Black
ef37166285
Style: normalize the code to double quotes for strings.
2016-03-28 13:27:17 -04:00
Steven Black
b996001c95
Scope management.
2016-03-25 23:45:18 -04:00
Steven Black
92e8e4d8d9
Whitespace.
2016-03-25 23:44:54 -04:00
Steven Black
2d44d18af6
Jettison legacy codeblock.
2016-03-25 23:44:22 -04:00
Steven Black
30e5d843d4
Issue #77 : fix bug with emitting comments.
2016-03-24 23:34:28 -04:00