-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add DNSCrypt starter script and menu option. Fix Settings screen to i…
…nherit config parameters for default instead of first selection. Fix typo in cache server failover. Add DNSCrypt resolvers to Settings and link to resolver README. Tidy up meile_config.py. Add all resolvers to konstants
- Loading branch information
Showing
9 changed files
with
1,516 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
if [[ "${1^^}" == "UP" ]]; then | ||
DNS_SERVER="127.0.0.1" | ||
else | ||
DNS_SERVER="1.1.1.1" | ||
fi | ||
|
||
for interface in $(resolvectl status | grep "Link" | awk '{print $2}'); do | ||
resolvectl dns "$interface" $DNS_SERVER | ||
done | ||
|
||
resolvectl status | ||
|
||
|
||
if [[ "${1^^}" == "UP" ]]; then | ||
echo "Setting up dnscrypt-proxy..." | ||
/home/${USER}/.meile-gui/bin/dnscrypt-proxy -config /home/${USER}/.meile-gui/dnscrypt-proxy.toml & | ||
|
||
else | ||
echo "Stopping dnscrypt-proxy..." | ||
pkill -11 dnscrypt-proxy | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.