- DNS redirect fix

- Remove vim-nox from main container
This commit is contained in:
Eduardo Silva 2024-07-01 16:37:44 -03:00
parent 71920a212b
commit 10cc93c8ce
4 changed files with 5 additions and 3 deletions

View file

@ -164,7 +164,7 @@ def generate_firewall_header():
#
# This script was generated by WireGuard_WebAdmin on {timezone.now().strftime('%Y-%m-%d %H:%M:%S %Z')}
#
DNS_IP=$(host wireguard-webadmin-dns | grep -oP 'has address \K[\d\.]+')
DNS_IP=$(getent hosts wireguard-webadmin-dns | awk '{{ print $1 }}')
if [ -z "$DNS_IP" ]; then
DNS_IP="127.0.0.250"
fi