mullvadrc, change how the muting is done.

This commit is contained in:
me committed 2026-11-23 09:56:52 -07:00
1 parent 2ecd879efe
commit 9c0e16bd0f
1 file changed
+10 -2
+10 -2
View File
@@ -149,7 +149,11 @@
# This file is managed by Ansible.
# env-ansible/tasks/workstation/linux/software/vpn.yml
{
# Mute STDOUT, saving it in FD3.
if [[ -z $DEBUG && -z $VERBOSE ]]; then
exec 3>&1 1>/dev/null
fi
mullvad lan set allow # This allows Docker to forward ports to localhost!
mullvad tunnel set ipv6 on
@@ -168,7 +172,11 @@
#mullvad disconnect
#wifi off
#reconnect >/dev/null 2>&1 &
} 1>/dev/null
# Unmute STDOUT by restoring with FD3.
if [[ -z $DEBUG && -z $VERBOSE ]]; then
exec 1>&3
fi
[[ $(whoami) != "root" ]] &&
echo "`date` - Ansible .mullvadrc loaded successfully!"