X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fixvpndns;h=d33797ad7426e746d6cc23c12bb29ba5d45cf482;hb=07fbcf11a78d2ee20697eb98f5b7eeaa2475f1d1;hp=0619293aa181e2e6f259248a49966c79800ac436;hpb=0249e646cbed14fc191827f95a05044287d419ad;p=distro-setup diff --git a/fixvpndns b/fixvpndns index 0619293..d33797a 100755 --- a/fixvpndns +++ b/fixvpndns @@ -1,7 +1,7 @@ #!/bin/bash # Copyright (C) 2019 Ian Kelling # SPDX-License-Identifier: AGPL-3.0-or-later -source /a/bin/errhandle/err +source /a/bin/bash-bear-trap/bash-bear resolvuid=$(id -u systemd-resolve) case $EUID in @@ -16,5 +16,5 @@ if ! resolvectl dnsovertls tunfsf &>/dev/null; then # resolvectl dnsovertls tunfsf ||: exit 0 fi -read _ link _ < <(resolvectl dnsovertls tunfsf) +read -r _ link _ < <(resolvectl dnsovertls tunfsf) busctl call org.freedesktop.resolve1 /org/freedesktop/resolve1 org.freedesktop.resolve1.Manager SetLinkDNSOverTLS is $link no