Comments (12)
Try unchecking the "Override external modifications" checkbox. That resolved the problem for me.
from gasmask.
@PikachuEXE
I've since moved on to SwitchHosts! and find it quite ok, no issues at all.
You can check it out at either https://oldj.github.io/SwitchHosts/ or https://github.com/oldj/SwitchHosts/releases
from gasmask.
I reproduce it again, the following is the log, it only happend when it restore the /etc/hosts file.
[DEBUG] - RemoteHostsManager - Starting timer for remote hosts files. Interval: 60 minutes
[DEBUG] - HostsMainController - Saving selected hosts file
[DEBUG] - AbstractHostsController - Saving hosts file "Default" to "/etc/hosts"
[DEBUG] - AbstractHostsController - System hosts file is not writeable: "/etc/hosts"
[DEBUG] - PrivilegedActions - Making /etc/hosts writable for user jasongao
[DEBUG] - Util - Flushing Directory Service Cache
[DEBUG] - HostsMainController - External application has changed the hosts file, restoring file
[DEBUG] - AbstractHostsController - Restoring hosts file "Default" to "/etc/hosts"
[DEBUG] - Util - Flushing Directory Service Cache
from gasmask.
I encountered the same issue, as described in this bug: #15, I have a combined hosts file activated which is combined with a local and remote file.
from gasmask.
Happens here too, after updating the remote file:
me@mybox ~> more /etc/hosts
Remote/someonewhocares.org 0.0.0.0
Local/antiads
Repairable by setting the output (checkmark) to another file and then back again.
from gasmask.
I'm encountering the same issue. Is this how Gas Mask is supposed to work or a bug?
Note that things appear to work fine when the hosts file is a list of of my list names; however, when I ping 'localhost' it points to somewhere else. 'Refreshing' the hosts file through Gas Mask manually fixes the hosts file and localhost correctly points to 127.0.0.1.
from gasmask.
I have the same problem here. It happens whenever Gas Mask changes the hosts file without user interaction. Namely when external hosts files are being updated or when the hosts file has been modified by some other application and Gas Mask restores the file.
from gasmask.
I helped myself for now by running this script so I am at least informed whenever the hosts file is damaged.
#!/bin/bash
hostsfile="/etc/hosts"
query="ivwbox"
if ! grep -q "$query" "$hostsfile"; then
/usr/local/bin/terminal-notifier -message "hosts-file is not OK! Check Gas Mask!" -title "Gas Mask problem!"
fi
which is run every time the hosts file changes and every 5 minutes by a LaunchAgent. The script needs "terminal-notifier" from brew.
from gasmask.
Same issue here. (When using a combined hosts file) each time the remote hosts file is updated automatically in /etc, the new hosts file just reads:
Remote/someonewhocares.org
Local/Original File
I can confirm that while the remote file in the Gas Mask folder (someonewhocares.org.hst) shows the latest update from someonewhocares.org/hosts/hosts, the one in /etc (above) has no apparent effect in blocking out sites, after some tests. Only by activating another hosts file in Gas Mask and then switching back again does the hosts file in /etc finally update properly (as someone has mentioned earlier).
from gasmask.
Does anyone NOT have this issue with the current version (0.8.5) and external hosts files? I'm wondering if it can be fixed with a complete reinstall or something like that.
from gasmask.
@fmera
+1 for your workaround but still would be good to fix this bug
from gasmask.
Thanks
I will try it later
from gasmask.
Related Issues (20)
- Menu bar is not open when 3 monitors in a specific arrangement. HOT 3
- New release for Catalina ? Help HOT 2
- Suddenly not working on catalina HOT 3
- macOS 10.5 Catalina: works fine, but CrashReportSender framework still 32-bit
- Site becomes unreached after changing hosts
- restore original on quit option maybe
- Editor Window shows up on every desktop HOT 1
- crashes on Big Sur HOT 1
- Dark Mode is not showing in MacOS Big Sur
- Search bug in v0.8.6 HOT 1
- Will not open on M1 Macbook Pro running Monterey HOT 9
- Stumbled upon Gas Mask, intrigued but confused as to main purpose. HOT 3
- issue mistake
- issue
- [Feature Request] Log delta for remote host file update
- Apple Silicon Native Version (M1 & M2) HOT 8
- New Icon for Big Sur +
- Download link is unresponsive. HOT 4
- Not supported on MacOS 12.1 HOT 1
- Randomly crashes on ventura
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gasmask.